Тёмный

Angular 10 Tutorial #50 - Route Guards - CanActivateChild | Angular 10 Tutorial For Beginners 

ARCTutorials
Подписаться 66 тыс.
Просмотров 13 тыс.
50% 1

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@youtube_vids_07_08
@youtube_vids_07_08 Год назад
Can you please upload further notes on Git..... as the notes of ep50 onwards have not been uploaded there
@amanuellebassi7294
@amanuellebassi7294 3 года назад
Thanks, Sridhar. Nice to see you again my friend!
@ARCTutorials
@ARCTutorials 3 года назад
Thanks buddy!!!
@amanuellebassi7294
@amanuellebassi7294 3 года назад
@@ARCTutorials You have been an inspiration to me
@ARCTutorials
@ARCTutorials 3 года назад
@@amanuellebassi7294 Thank you so much for your kind words. You all are my motivation to keep working hard day in and day out!!!
@jasminemerchant3167
@jasminemerchant3167 3 года назад
Great videos sir, u have explained it so well, thank you for making these videos
@ARCTutorials
@ARCTutorials 3 года назад
Thank you so much Jasmine. Glad you liked the tutorials. Do let me know if you need any help or have doubts
@anandshreshti4255
@anandshreshti4255 2 года назад
Hi, I am creating Admin as lazy loading module , only for that i am giving canActive? and for remaining loadChildren components , i am giving canActiveChild? for accessing these child components. This will work in same way right?
@himanshuarora1910
@himanshuarora1910 Год назад
why you added one more path ' ' at line number 40 at 13:17 made the video confusing ?
@himanshuarora1910
@himanshuarora1910 Год назад
is path ' ' ,also a children of admin ?
@sowmyakarumanchi2826
@sowmyakarumanchi2826 3 года назад
Greatly explained
@ARCTutorials
@ARCTutorials 3 года назад
Glad you liked it
@bikramrout1464
@bikramrout1464 2 года назад
sir what if i want to restrict 1 child route from multiple child routes
@kishorekumars4664
@kishorekumars4664 3 года назад
Hi Sridhar..Thanks for uploading!!!
@ARCTutorials
@ARCTutorials 3 года назад
My pleasure. Most welcome
@ramreddy4097
@ramreddy4097 3 года назад
Hi Sridhar, if we are getting a result for canActivate or canActivatedchild as false where we have to redirect our route??
@ARCTutorials
@ARCTutorials 3 года назад
We can use the router instance in our constructor and redirect to any link/route of our choice
@saalimhussain6635
@saalimhussain6635 3 года назад
Thanks sir
@ARCTutorials
@ARCTutorials 3 года назад
So nice of you
@raveendraravikala269
@raveendraravikala269 Год назад
hi sir , i have an error in route guards canActivate child in child routing. i attached code. please rectify error in that code below and error out also ------------------------------------------------------- { path:'admin', canActivateChild:[AdminAccessGuard], children:[ { path:'', component:AdminComponent, canActivate:[SuperAdminGuard] }, {path:'manage',component:AdminManageComponent}, {path:'edit',component:AdminEditComponent}, {path:'delete',component:AdminDeleteComponent}, ] }, ------------------------------------------------------------------------------ main.ts:6 ERROR Error: Uncaught (in promise): TypeError: guard is not a function TypeError: guard is not a function at router.mjs:3432:56 at R3Injector.runInContext (core.mjs:8501:20) at router.mjs:3432:37 at Array.map () at router.mjs:3427:43 at Observable._subscribe (defer.js:5:19) at Observable._trySubscribe (Observable.js:37:25) at Observable.js:31:30 at errorContext (errorContext.js:19:9) at Observable.subscribe (Observable.js:22:21) at resolvePromise (zone.js:1214:31) at resolvePromise (zone.js:1168:17) at zone.js:1281:17 at _ZoneDelegate.invokeTask (zone.js:409:31) at core.mjs:25299:55 at AsyncStackTaggingZoneSpec.onInvokeTask (core.mjs:25299:36) at _ZoneDelegate.invokeTask (zone.js:408:60) at Object.onInvokeTask (core.mjs:25607:33) at _ZoneDelegate.invokeTask (zone.js:408:60) at Zone.runTask (zone.js:178:47) ---------------------------------------------------------------------------------------------------------------------------------------------------------------
@netiksharma9558
@netiksharma9558 11 месяцев назад
I am working in Angular 14 and canActivatedChild is not working
@ananyabr4448
@ananyabr4448 3 года назад
Sir where do u write that client details?
Далее
when you have plan B 😂 @andreyreactions
00:11
Просмотров 1,1 млн
CanActivateChild Route Guard - Angular (Tutorial #25)
10:56
Angular 9 Tutorial For Beginners #39 - Route Guards
15:45
CanActivate Route Guard - Angular (Tutorial #24)
11:58