ng-zorro-antd
ng-zorro-antd copied to clipboard
[Angular 17]when I use the command 'ng g ng-zorro-antd:button-size thebutton' to generate a Component I met So many Errors in the generated html files
What problem does this feature solve?
- My NG-ZORRO project based Angular 17 without app.module.ts file(standalone=true)
- When I use the command
ng g ng-zorro-antd:button-size thebutton
to generate a Component, I hope the command will generateimports
code for me - Without the
imports
code, the html file reports so many errors
What does the proposed API look like?
import { NzButtonModule, NzButtonSize } from 'ng-zorro-antd/button';
import { NzRadioModule } from 'ng-zorro-antd/radio';
standalone: true,
imports: [NzButtonModule, NzRadioModule, FormsModule]