RUVIDEO
Поделитесь видео 🙏

CanActivateChild Route Guard - Angular (Tutorial #25) смотреть онлайн

CanActivateChild Route Guard in Angular - Tutorial no. 25

The Angular invokes CanActivateChild guard whenever the user tries to navigate to any of its child route.
This allows us check some condition and decide whether to proceed with the navigation or cancel it.

Use this link to share this video :https://youtu.be/Z0PNK-n5iv0

You can also visit my following videos:
CanActivateRouteGuard: https://youtu.be/PbmY7tTPqBs
Nested Routing: https://youtu.be/JfNLM0hq_uk
Router Parameters: https://youtu.be/35ZvxP4Me18
Routing: https://youtu.be/E8QOJ822Ta4

Guards in angular are interfaces which can tell the router whether or not it should allow navigation to a requested route.
So If all guards return true, navigation will continue. If any guard returns false, navigation will be cancelled.
Guards return either true if the user can access a route or false if they can’t.
They can also return an Observable or Promise that later on resolves to a boolean in case the guard can’t answer the question straight away,
for example it might need to call an API. Angular will keep the user waiting until the guard returns true or false.

There are five different types of Guards:

CanActivate
Checks to see if a user can visit a route.

CanActivateChild
Checks to see if a user can visit a routes children.

CanDeactivate
Checks to see if a user can exit a route.

Resolve
Performs route data retrieval before route activation.

CanLoad
Checks to see if a user can route to a module that lazy loaded.

For a given route we can implement zero or any number of Guards.

If we talk about the difference between canActivate and canActivateChild RouteGuard, then we can say
When we apply canActivateGuard it always check parent route accessibility. If Parent route is accessible, automatically its child routes are also accessible. But in some situation we may have some other criteria to check
before executing child route event when parent route is accessible.

CanActivateChild Guard is simply a service that implements the CanActivateChild interface and overrides the canActivateChild() method.
In this case, it always returns true which means access to child Routes will be always granted to the user when this guard is applied to a route.

Angular Tutorial Series:
https://www.youtube.com/watch?v=WSu-G0gk3Ks&list=PLC8OkhrVTHNHi6Do0etu_wMvAvjdjukQp

Follow me on:
►Youtube : https://www.youtube.com/nishasingla
►Facebook : https://www.facebook.com/AngularJS4Beginners/
►LinkedIn : https://www.linkedin.com/in/nishasingla/

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «CanActivateChild Route Guard - Angular (Tutorial #25)» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.