projects/maplander/shared/src/lib/services/lazy-loader/lazy-loader.module.ts
Static forChild |
forChild()
|
Returns :
ModuleWithProviders
|
import {ModuleWithProviders, NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {LazyLoadService} from './lazy-load.service';
@NgModule({
imports: [
CommonModule
]
})
export class LazyLoaderModule {
static forChild(): ModuleWithProviders {
return {
ngModule: LazyLoaderModule,
providers: [
LazyLoadService
]
};
}
}