1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| import { IconDefinition } from '@ant-design/icons-angular'; import { NzIconModule, NZ_ICON_DEFAULT_TWOTONE_COLOR, NZ_ICONS } from 'ng-zorro-antd/icon';
import { AccountBookFill, AlertFill, AlertOutline } from '@ant-design/icons-angular/icons';
const icons: IconDefinition[] = [ AccountBookFill, AlertOutline, AlertFill ];
@NgModule({ declarations: [ AppComponent ], imports: [ NzIconModule, ], providers: [ { provide: NZ_ICON_DEFAULT_TWOTONE_COLOR, useValue: '#00ff00' }, { provide: NZ_ICONS, useValue: icons } ], bootstrap: [ AppComponent ] }) export class AppModule { }
|