Adding a Router Module

Add a new module named app-routing to your application as follows.

ng generate module app-routing

This will create a new module file named app-routing.module.ts in the app-routing folder.

This module will provide routing features for our application. In the next page, we will use this in our app module to enable routing.