Configuring Routing in our Application

Learn how to configure multiple routes in the Angular application.

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.

  1. Run the following command to create a new Angular component named cart:

Get hands-on with 1200+ tech skills courses.