Routing in Angular is a feature which helps
us to load different components in the UI based on user actions like clicking a
link etc. Apart from clicking on the links we can also change the URL in the
browser and view the components mapped to the various routes.
Let us start with a basic Routing example, let us begin by creating a new component routeApp by running the ng generate component command as follows.
ng generate component routeApp
Let us start with a basic Routing example, let us begin by creating a new component routeApp by running the ng generate component command as follows.
ng generate component routeApp