Загрузка...

Angular 21 Route Guards (CanActivate + CanActivateChild + CanDeactivate + CanLoad )

#angular21 #angularcourse #angularmaterial

This video explains route guards in angular 21 it covers below topics

1, CanActivate - determines whether a user can access a route. It is most commonly used for authentication and authorization.

2, CanActivateChild - guard determines whether a user can access child routes of a particular parent route. This is useful when you want to protect an entire section of nested routes

3, CanDeactivate - determines whether a user can leave a route. A common scenario is preventing navigation away from unsaved forms.

4, CanMatch - determines whether a route can be matched during path matching. This can be useful for feature flags, A/B testing, or conditional route loading.
👉 GitHub Repo: https://github.com/nihiratechiees/materialui

Join this channel to get access to perks:
https://www.youtube.com/channel/UCsbmVmB_or8sVLLEq4XhE_A/join

Видео Angular 21 Route Guards (CanActivate + CanActivateChild + CanDeactivate + CanLoad ) канала Nihira Techiees
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять