DEV Community

#/home/pavan
#/home/pavan

Posted on

Angular: Inline Styles & Tests Setting

Every time when I create a component, I usually skip creating test and external CSS files by supplying following switches to the ng command

ng g c my-component --inlineStyle=true --skipTests=true

However, I can easily avoid this by setting it in angular.json file

image

The inlineTemplate setting help us to chose should I need a separate HTML file for UI or going to write HTML code inside the .ts file (like we do in React).

Top comments (0)