- Import and add RouterModule to the modules in NgModule
- Declare a routes array which contains all the routes and their endpoints and then pass this routes array to the RoutingModule.
- use the directive
where the routed components are to be rendered.
- use the directive routerLink inside an tag to create internal links based on the routing table within the application.