#97 CanActivateChild Route Guard | Angular Router & Route Guards | A Complete Angular Course

  Рет қаралды 5,289

procademy

procademy

Күн бұрын

Пікірлер: 10
@raniachaieb2200
@raniachaieb2200 6 ай бұрын
Thank you
@TariqueMahmud313
@TariqueMahmud313 10 ай бұрын
Where have you been all the years? Thanks a lot.
@mihaidornescu5014
@mihaidornescu5014 Жыл бұрын
I love your videos and have watched about 90% of them in the Angular 16 series. Just a minor detail: in this particular video, the sound quality in some parts is not very good.
@procademy
@procademy Жыл бұрын
Thank you for your feedback....i will rectify it in future lectures 🙂
@artsentertainment8875
@artsentertainment8875 9 ай бұрын
I have noticed that both "canActivate" and "canActivateChild" are protecting the child routes when applied on parent route(The catch here is both these guards are not protecting the parent route, But both the guards are protecting the child guards only). So Sir, I couldn't notice difference b/w these 2 guards, Can you please clarify the difference between canActivate and canActivateChild, And which one to be used in which situation? canActivate on Parent ------------------------------------ { path: "Courses", canActivate: [canActivate], children: [ { path: "Course/:id", component: CourseDetailComponent }, { path: "Popular", component: PopularComponent }, { path: "Checkout", component: CheckoutComponent }, ], }, canActivateChild on Parent -------------------------------------------- { path: "Courses", canActivateChild: [canActivateChild], children: [ { path: "Course/:id", component: CourseDetailComponent }, { path: "Popular", component: PopularComponent }, { path: "Checkout", component: CheckoutComponent }, ], },
@sasuke3737
@sasuke3737 8 ай бұрын
to protect the parent you will have to apply the canActivate to the parent seperately {path:course, component:courseComponent, canActivate:[canActivate]}
@akhileshk2864
@akhileshk2864 Жыл бұрын
please do videos on RestAPI calls in Angular
@vaibhavregundawar4612
@vaibhavregundawar4612 7 ай бұрын
Can't we use the same CanActivate function for protecting child in 2nd approch ( Angular 15 and above version)?
@hashiriqbal9583
@hashiriqbal9583 4 ай бұрын
CanActivate protects parent as well as child but if we want to protect children of a parent then we use CanActivateChildFn that will protect children only and not the parent
@mehulpateld
@mehulpateld 9 ай бұрын
Please create angular 17 course
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
CanActivateChild Route Guard - Angular (Tutorial #25)
10:56
Nisha Singla
Рет қаралды 17 М.
Angular v19 Developer Event
22:54
Angular
Рет қаралды 70 М.
Web Workers in Action - Performance Boost for Web Applications (2023)
22:51