What is Route Guard in Angular | Angular Routing | Angular 13+

What is Route Guard in Angular | Angular Routing | Angular 13+

procademy

2 года назад

21,204 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@maheshsirsat1811
@maheshsirsat1811 - 03.08.2023 15:21

Done

Ответить
@Karthik22ng
@Karthik22ng - 07.06.2023 09:23

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

Ответить
@kolawoleomotosho3073
@kolawoleomotosho3073 - 10.05.2023 14:03

You did not teach about CanLoad Guard in this playlist

Ответить
@kavitalokhande3166
@kavitalokhande3166 - 31.12.2022 07:40

Please add canload video

Ответить
@zameershaikh4324
@zameershaikh4324 - 24.11.2022 20:50

Good Job🙂

Ответить