top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to create a angular component with block element by default?

0 votes
383 views
How to create a angular component with block element by default?
posted Mar 21, 2018 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Using Css only we need to control the block/inline element.

Example:

<style>
.ng-component{  display:block; }  // all my components will be block by default.
....
my-inline-component.ng-component{ display:inline-block;  } // this one will be in-line.. etc...
</style>

See for more discussion: https://github.com/angular/angular/issues/5960

answer Aug 26, 2018 by Pardeep Kohli
...