Skip to content

Commit

Permalink
chore: use provideNzConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Sep 22, 2023
1 parent ecc9650 commit be7e325
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/core/code/files/global-config.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ alainProvides.push(AlainConfigService as any);
// Please refer to: https://ng.ant.design/docs/global-config/en#how-to-use
// #region NG-ZORRO Config
import { NzConfig, NZ_CONFIG } from 'ng-zorro-antd/core/config';
import { NzConfig, provideNzConfig } from 'ng-zorro-antd/core/config';
const ngZorroConfig: NzConfig = {};
const zorroProvides = [{ provide: NZ_CONFIG, useValue: ngZorroConfig }];
const zorroProvides = [provideNzConfig(ngZorroConfig)];
// #endregion
Expand Down
4 changes: 2 additions & 2 deletions src/app/global-config.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ const alainProvides = [{ provide: ALAIN_CONFIG, useValue: alainConfig }];
// Please refer to: https://ng.ant.design/docs/global-config/en#how-to-use
// #region NG-ZORRO Config

import { NzConfig, NZ_CONFIG } from 'ng-zorro-antd/core/config';
import { NzConfig, provideNzConfig } from 'ng-zorro-antd/core/config';

const ngZorroConfig: NzConfig = {};

const zorroProvides = [{ provide: NZ_CONFIG, useValue: ngZorroConfig }];
const zorroProvides = [provideNzConfig(ngZorroConfig)];

// #endregion

Expand Down

0 comments on commit be7e325

Please sign in to comment.