December 2017
Beginner
372 pages
10h 32m
English
The flat option informs the Angular CLI whether the files to be created should reside in a separate folder or not. The default behavior is to have a folder for each component as we saw when we generated the component for Homepage. If we set the flag as true, Angular CLI will not create a folder and generate the files in the parent folder itself.
The recommended practice is to always have a separate folder for each component.
Read now
Unlock full access