Skip to content

Commit 0de8920

Browse files
committed
create display block component
1 parent d81e78d commit 0de8920

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
|242| [What classes should not be added to declarations?](#what-classes-should-not-be-added-to-declarations)|
251251
|243| [Wat is ngzone?](#what-is-ngzone)|
252252
|244| [What is NoopZone?](#what-is-noopzone)|
253-
|245| [?](#)|
253+
|245| [How do you create displayBlock components?](#how-do-you-create-displayblock-components)|
254254
|246| [?](#)|
255255
|247| [?](#)|
256256
|248| [?](#)|
@@ -3580,7 +3580,12 @@
35803580
```
35813581
**[⬆ Back to Top](#table-of-contents)**
35823582
3583-
245. ### ?
3583+
245. ### How do you create displayBlock components?
3584+
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,
3585+
```js
3586+
ng generate component my-component --displayBlock
3587+
```
3588+
(OR) the option can be turned on by default in Angular.json with `schematics.@schematics/angular:component.displayBlock` key value as true.
35843589
35853590
**[⬆ Back to Top](#table-of-contents)**
35863591

0 commit comments

Comments
 (0)