MCPcopy
hub / github.com/rx-angular/rx-angular / constructor

Method constructor

libs/isr/server/src/isr.module.ts:17–25  ·  view source on GitHub ↗
(
    private isrService: IsrService,
    @Inject(PLATFORM_ID) private platformId: object,
  )

Source from the content-addressed store, hash-verified

15@NgModule({ providers: [IsrService] })
16export class IsrModule {
17 constructor(
18 private isrService: IsrService,
19 @Inject(PLATFORM_ID) private platformId: object,
20 ) {
21 // Activate ISR only on the server
22 if (isPlatformServer(platformId)) {
23 isrService.activate();
24 }
25 }
26
27 static forRoot(): ModuleWithProviders<IsrModule> {
28 return {

Callers

nothing calls this directly

Calls 1

activateMethod · 0.65

Tested by

no test coverage detected