How to use the @delon/util.DelonUtilModule.forRoot function in @delon/util

To help you get started, we’ve selected a few @delon/util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ng-alain / delon / site / app / delon.module.ts View on Github external
licenseA: `C94CEE276DB2187AE6B65D56B3FC2848`
    });
}

// endregion

@NgModule({
    imports: [
        NgZorroAntdModule.forRoot(),
        // theme
        AlainThemeModule.forRoot(),
        // abc
        DelonABCModule.forRoot(),
        // form
        DelonFormModule.forRoot(),
        DelonUtilModule.forRoot()
    ]
})
export class DelonModule {
  constructor( @Optional() @SkipSelf() parentModule: DelonModule) {
    throwIfAlreadyLoaded(parentModule, 'DelonModule');
  }

  static forRoot(): ModuleWithProviders {
      return {
          ngModule: DelonModule,
          providers: [
            { provide: AdLodopConfig, useFactory: adLodopConfig }
          ]
      };
  }
}