Method
constructor
(
private isrService: IsrService,
@Inject(PLATFORM_ID) private platformId: object,
)
Source from the content-addressed store, hash-verified
| 15 | @NgModule({ providers: [IsrService] }) |
| 16 | export 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
Tested by
no test coverage detected