ng generate component [name]
Generate a new component
Arguments
Name | Description |
---|---|
name | Component name |
Options
Name | Description |
---|---|
--project <arg> | Project name |
--change-detection, -c <strategy> | The change detection strategy to use |
--display-block, -b <boolean> | Add :host block to styles |
--flat <boolean> | Create at the top level |