Prevent the addition of an HTML wrapping element for an Angular component

 Angular adds a wrapping element for every component which in turn may affect CSS styling.

To avoid this behavior add this to the component style / CSS:

host { display: contents; }


Post a Comment

Previous Post Next Post