By default, Angular CLI creates components in an inline displayed mode. But it is possible to create components with display: block style using display: Block option. Could you please help me on this?
>Solution :
You can use the --display-block arugment when running ng generate component <<component name>>
ng g c <<component name>> --display-block
—display-block
- Specifies if the style will contain :host { display: block; }.
- Aliases: -b
- boolean false