Setting Defaults for Angular CLI
Angular CLI works great out of the box and the default setup delivers a nice configuration to work with. But in addition to having some sane defaults, it is also very configurable.
In this book, we will take the opportunity to configure our Angular CLI defaults so it behaves a little bit differently.
The things we are going to change all have to do with how we generate (or scaffold) our code.
When scaffolding components, the default Angular CLI settings will create the HTML template and style sheet in a separate file.
In order to keep all component content in one file, we will configure Angular CLI to generate inline templates and styles.
The advantage of keeping all the component content in one file is that you can ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access