How do you create displayBlock components?

Posted by Jennifer | Updated on

By default, Angular CLI creates components in an inline displayed mode(i.e, display:inline). But it is possible to create components with display: block style using displayBlock option:

(OR) the option can be turned on by default in Angular.json with [email protected]/angular:component.displayBlock key value as true.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers