Angular Routing is a built-in feature that enables you to create a Single Page Application (SPA) user interface, where users can navigate to different views without having to reload the entire page from the server every time.
Angular Routing is a built-in feature that enables you to create a Single Page Application (SPA) user interface, where users can navigate to different views without having to reload the entire page from the server every time.
The Angular Router intercepts the browser's page navigation and document history in order to provide this SPA functionality. Instead of using the traditional anchor tags like this:
<a href='/products'>Products</a>
Angular Routing uses "routerLink" to navigate between views:
<a routerLink="/products">Products</a>
Questions using this tag could be about:
- Troubleshooting routing problems
- How to use the "routerLinkActive" tag to control properties
- Wildcard and error routing
- Redirecting views
- Route Guards, including Authentication & Authorization
- Child Routes
- How to configure the App Routing Module (and if you need one)
- Asynchronous Routing
Routing is covered in great detail and with many examples in the Angular Guide: