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
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
Post a Comment