1.1.1 • Published 1 year ago

@ngx-ssr/timeout v1.1.1

Weekly downloads
1
License
-
Repository
-
Last release
1 year ago

Install package

npm i @ngx-ssr/timeout

Use NgxSsrTimeoutModule to set timeouts for all requests

import { NgModule } from '@angular/core';
import {
  ServerModule,
} from '@angular/platform-server';
import { AppModule } from './app.module';
import { AppComponent } from './app.component';
import { NgxSsrTimeoutModule } from '@ngx-ssr/timeout';

@NgModule({
  imports: [
    AppModule,
    ServerModule,
    NgxSsrTimeoutModule.forRoot({ timeout: 500 }),
  ],
  bootstrap: [AppComponent],
})
export class AppServerModule {
}