Angular routing

Routes

Maps the path to the controllers.  Also ensure that the full path is updated in the browser.

Route Guards

These can be used to run logic to decide whether a component can be routed to.  This prevents users from trying to get access to pages that they are not authorised to access by entering the path in the address bar.

To create the guard

>ng g guard auth --skipTests

Comments

Popular posts from this blog

Understanding the technologies - Angular 8 and ASP.NET Web API Core 3

Bits and bobs