add style in style.css in angular code example Example: angular inline component > ng generate component --inlineTemplate=true --inlineStyle=true