icons-provider.module.ts 688 字节
Newer Older
J
Jason 已提交
1 2 3 4 5 6 7 8 9 10
import {NgModule} from '@angular/core';
import {NZ_ICONS, NzIconModule} from 'ng-zorro-antd/icon';

import {
  MenuFoldOutline,
  MenuUnfoldOutline,
  FormOutline,
  DashboardOutline,
  SettingOutline,
  LogoutOutline,
J
顶替  
Jason 已提交
11 12 13
  MailOutline,
  ApiOutline,
  HddOutline,
J
Jason 已提交
14
} from '@ant-design/icons-angular/icons';
J
 
Jason 已提交
15
import {CommonModule} from '@angular/common';
J
Jason 已提交
16

J
顶替  
Jason 已提交
17
const icons = [MenuFoldOutline, MenuUnfoldOutline, DashboardOutline, FormOutline, SettingOutline, LogoutOutline, ApiOutline, HddOutline];
J
Jason 已提交
18 19 20 21 22

@NgModule({
  imports: [CommonModule, NzIconModule.forChild(icons)],
  exports: [NzIconModule],
  providers: [
J
 
Jason 已提交
23
    { provide: NZ_ICONS, useValue: icons }
J
Jason 已提交
24 25 26 27
  ]
})
export class IconsProviderModule {
}