CanActivate Route Guard in Angular | Angular Route | Angular 13+

  Рет қаралды 24,217

procademy

procademy

Күн бұрын

Пікірлер: 18
@ambikadh5720
@ambikadh5720 8 ай бұрын
Nice vedio on canActivate route guard
@SrinathJog
@SrinathJog Жыл бұрын
can activate is deprecated in angular/router in angular 15+ . So please use can activate as interface now export declare interface CanActivate { canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable | Promise | boolean | UrlTree; } @Injectable() export class AuthGuard implements CanActivate {}
@nivethan2728
@nivethan2728 Жыл бұрын
Can you please post a video on how to implement the same functionality without using the deprecated canActivate
@silvertoothdevlog6102
@silvertoothdevlog6102 2 жыл бұрын
What if we were subsribed to the boolean value of the authentication in courses page ? Could this result in a dynamic response when logout is clicked the user would be redirected to the home page automatically ?
@GamBar64
@GamBar64 2 жыл бұрын
Great vid, route guards are easy!
@kmdazar
@kmdazar Жыл бұрын
Thanks for nice explanation on 'canActivate', also can you please explain on 'canLoad' and 'resolve' ?
@gladisxavier2430
@gladisxavier2430 2 жыл бұрын
Sir need ur help in CourseGuardService when i put canactivate to 'false' in the navigation bar allow to view the hoem page.follow all ur steps pls guide me which place i did mistake.if i give canactivate true or false in my navigation bar is not respond pls guide me sir
@ramzirihane3612
@ramzirihane3612 2 жыл бұрын
please i need some help , i try with this but it not work
@lakshithakanchana6155
@lakshithakanchana6155 Жыл бұрын
@procademy "CanActivate" guard is deprecated from the start of the Angular 15. But I do not understand the method to resolve it at all. Please update this video.
@arammah
@arammah Жыл бұрын
just don't implement your class to interface of CanActivate;just use canActivate method as well as before.
@lakshithakanchana6155
@lakshithakanchana6155 Жыл бұрын
@@arammah Thanks. Then what is CanActivateFn?
@arammah
@arammah Жыл бұрын
@@lakshithakanchana6155 canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable | Promise | boolean | UrlTree
@lakshithakanchana6155
@lakshithakanchana6155 Жыл бұрын
@@arammah thanks Aida.
@mmashabanemogoboya7686
@mmashabanemogoboya7686 2 жыл бұрын
I wanna implement the same guards in ionic angular but its not working, after loging in it should redirect to home page but it stays on login
@procademy
@procademy 2 жыл бұрын
Can you share the code for CanActivate route which you have implemented.
@procademy
@procademy 2 жыл бұрын
Are you first returning true and then navigating the user??
@nailiridha7179
@nailiridha7179 2 жыл бұрын
good good good
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 156 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 30 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 39 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 37 МЛН
Resolve Route Guard in Angular | Angular Routing | Angular 13+
16:40
Change Detection in Angular Pt.3 - OnPush Change Detection Strategy
16:53
Pipes in Angular | Angular Pipes | Angular 13+
14:15
procademy
Рет қаралды 14 М.
Angular CanMatch Route Guard | Why is CanLoad deprecated?
8:15
Web Tech Talk
Рет қаралды 2,4 М.
Grouping of Form Controls | Reactive Form | Angular 13+
10:45
procademy
Рет қаралды 16 М.
Guard In Angular 17 | Angular Authentication & Authorization | Angular 17
14:07
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 156 МЛН