17 lines
444 B
TypeScript
17 lines
444 B
TypeScript
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
|
import { IconRegistryService } from './icon-registry.service';
|
|
|
|
@NgModule({
|
|
providers: [
|
|
{
|
|
provide: APP_INITIALIZER,
|
|
useFactory: (iconRegistryService: IconRegistryService) => {
|
|
return () => iconRegistryService.init();
|
|
},
|
|
deps: [IconRegistryService],
|
|
multi: true,
|
|
},
|
|
],
|
|
})
|
|
export class PiSharedUtilIconRegistryModule {}
|