Configuring Routing in our Application
Learn how to configure multiple routes in the Angular application.
We'll cover the following
When we start designing the architecture of an Angular application with routing, it is easier to think about its main features as links that users can click to access. Products and shopping carts are basic features of the e-shop application we are currently building. Adding links and configuring them to activate certain features of an Angular application is part of the route configuration of the application.
Creating the route configuration
To set up the route configuration of the application, follow the steps below:
Note:Â The commands below are for creating new components locally using the Angular CLI.
Run the following command to create a new Angular component named
cart
:
Get hands-on with 1200+ tech skills courses.