Creating an Angular app with routes using the CLI
If you ask me about how we used to create projects for web applications 7-8 years ago, you'll be astonished to learn how difficult it was. Luckily, the tools and standards have evolved in the software development industry and when it comes to Angular, starting a project is super easy. You can even configure different things out of the box. In this recipe, you'll create a fresh Angular project using the Angular CLI and will also enable the routing configuration as you create the project.
Getting ready
The project that we are going to work on does not have a starter file. So, you can open the chapter07/start_here
folder from the cloned repository directly into the Visual Studio Code app.
How to do it…
We'll be creating the app using the Angular CLI first. It'll have routing enabled out of the box. Similarly, going forward, we'll create some feature modules with components as well, but they&apos...