Questions about the Angular 4 Router. Use this to tag questions specific to the Angular 4 Router; which is not to be confused with the outdated Angular 2 Router (router-deprecated) or the Angular 1.x router (angular-ui-router).
Angular router is key to developing multi-page apps with Angular. From Todd Motto's blog:
Angular’s router acts as the main hub of any application, it loads the relevant components relevant to the route requested, as well as dealing with fetching the relevant data for that particular route. This allows us to control different routes, data and the components that render the data (as well as many additional features).
Angular Router 4 has numerous features including:
- Support for multiple router outlets.
- Route guards allowing for routes to be reactively disabled.
- Various mechanisms for storing and parsing data from from the URI including fragments, parameters, and query objects.