ng-zorro-antd icon indicating copy to clipboard operation
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

Open JavaProgrammerLB opened this issue 8 months ago • 0 comments

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 generate imports code for me
  • Without the imports code, the html file reports so many errors Snip20240620_4

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]

image

JavaProgrammerLB avatar Jun 20 '24 08:06 JavaProgrammerLB