Today we will look at how we can make sure the routes we create in Angular are accessed by the right people and that we prevent unauthorized access to routes that are private.
Today we are building a simple navigation component to illustrate the concept of routing, learn more about router links and understand how to set up routing programmatically in the Angular component file.
Let’s take another look at routing in Angular—this time how you can use the router link to set up wildcards, so nonexistent URLs bring up a 404 page or redirect users to another page.