// 解壓到:/assets/fonts/css
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgZorroAntdModule } from 'ng-zorro-antd';html
@NgModule({
imports: [
BrowserAnimationsModule,
NgZorroAntdModule.forRoot({ extraFontName: 'anticon', extraFontUrl: './assets/fonts/iconfont' })
]
})web
<button nz-button [nzType]="'primary'">測試按鈕</button>npm
ng g m sharedantd
import { NgZorroAntdModule } from 'ng-zorro-antd';app
@NgModule({
imports: [
NgZorroAntdModule
], exports: [
NgZorroAntdModule
]
})測試
ng g m monitorcomponent
import { SharedModule } from '../shared';orm
@NgModule({
imports: [
SharedModule
]
})htm
ng g c monitor/monitor-layout
<button nz-button [nzType]="'primary'">測試按鈕</button>