Home Angular Prevent the addition of an HTML wrapping element for an Angular component Prevent the addition of an HTML wrapping element for an Angular component byAlex R. •June 24, 2021 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; } Tags Angular Facebook X