If you want to navigate to different pages in your application, but you also want the application to be a SPA (Single Page Application), with no page reloading, then your app needs routing and angular makes it very easy.

Routing means navigating between the pages. You have seen many websites with links that direct you to the new page. This can be achieved using routing.

We also see the sub routing or children routing for our components. That means, in our application, there is one root route, and other routes are for their respective components.
If we want to make our Angular application modular, then it is the best practice to assign the routes module-wise.

We will take an example of how we can create root route and child routes in this angular 9 routing and sub routing tutorial with an example.

#angular #angular 9

Angular 9 Routing and Sub Routing Example
1.55 GEEK