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 Жыл бұрын
Can you please post a video on how to implement the same functionality without using the deprecated canActivate
@silvertoothdevlog61022 жыл бұрын
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 ?
@GamBar642 жыл бұрын
Great vid, route guards are easy!
@kmdazar Жыл бұрын
Thanks for nice explanation on 'canActivate', also can you please explain on 'canLoad' and 'resolve' ?
@gladisxavier24302 жыл бұрын
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
@ramzirihane36122 жыл бұрын
please i need some help , i try with this but it not work
@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 Жыл бұрын
just don't implement your class to interface of CanActivate;just use canActivate method as well as before.