In this section, we will start with scaffolding a simple Angular application with routing enabled using the Angular CLI and use some Angular generation schematics to create modules and components.
Let's get started and build a simple Angular application with routing and SCSS by using the Angular CLI. Here, we will use the prefix of pb so that our component tags are pb-root, pb-post, and so on:
> ng new personal-blog --routing --style scss --prefix pb
The ng new command is used for creating a new Angular app:
- personal-blog is the name of the project, and so we will create a folder called personal-blog and include all the application files in it.
- The routing flag is used to create an application with routing capability enabled. The routing flag creates an extra module called AppRoutingModule...