python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Cannot find name 'canActivate'
Guys i'm trying to make a auth guard to guard routes that someone who isnt authenticated cannot access. In my AuthService i imported Can Activate like this:
import { CanActivate, ActivatedRouteSnapsho...
Paula Bremenkamp
Votes: 0
Answers: 1
NgRx how to wait for the end of an Effect execution
How to wait for the completion of an Effect in NgRx.
I am stuck in this situation. I have an effect that loads a token from the storage and the dispatch an action to update the Store depending that th...
akuma8
Votes: 0
Answers: 1
Auth guard - angular - toastr service is not working
export class AuthGuard implements CanActivate {
constructor(private accountService:AccountService, private toastr:ToastrService){}
canActivate(): Observable<boolean> {
return this.accoun...
Zyad Tarek
Votes: 0
Answers: 0
How to use same route guard for different routes that differ in authorization logic
For my Angular 6 project, I have one canactivate AuthGuard to load ComponentA.
I want to know can I use the same AuthGuard for component B where it's the authorization logic is exactly opposite to com...
LearnToCode
Votes: 0
Answers: 1