Комментарии:
Done
ОтветитьMy Notes:
Route Guard
secure the route
used in authentication
5 Interfaces
1. canActivate
2. canDeactivate
3. Resolve
4. canLoad
5. canActivateChild
Create an injectable service which implements from any one of above 5 interface and implement the members ofthe interface
if the method returns true, it is valid, else to cancel.
register the service in providers of appmodule
use the service in the routes array for any route using above 5 property name
You did not teach about CanLoad Guard in this playlist
ОтветитьPlease add canload video
ОтветитьGood Job🙂
Ответить