Using Auxiliary Routes
Angular supports the concept of auxiliary routes, which allow you to set up and navigate multiple independent routes in a single app. Auxiliary routes allow the user to access or toggle portions of the page, such as a side-bar or dialog, using the URL.
Each component has one primary route and zero or more auxiliary outlets. Auxiliary outlets must have unique name within a component.
To define the auxiliary route we must first add a named router outlet where contents for the auxiliary route are to be rendered.
Here's an example:
Next we must define the link to the auxiliary route for the application to navigate and render the contents.
Each auxiliary route is an independent route which can have:
its own child routes
its own auxiliary routes
its own route-params
its own history stack
Last updated