To find more information :
Questions tagged [angular-router-guards]
289 questions
-1
votes
1 answer
Angular Route Resolve Guards - Help needed
Problem description
In my app I'm using JWT authentication. Inside the payload of the token I store the user id.
After the login, or when the user refresh the page and still have a valid token, I use the id inside the token to retrieve some…

Nite
- 323
- 1
- 4
- 12
-2
votes
1 answer
Angular guard with http request
i'm trying to make guard, but i cant return value after subscribe
This code returns error TS2366: Function lacks ending return statement and return type does not include 'undefined'.
I checked some solutions and they using map instead of subscribe,…

VCGRC
- 31
- 5
-2
votes
1 answer
Angular guard not returning data
I'm using google maps API to get maxLat,maxLng,minLat,minLng and then I want to resolve data from the database before create the component, this is for SEO metas and description
the problem is, that the guard is resolving the data, but not resolving…
-2
votes
1 answer
Angular 8 Guards from link url or from browser url
Is there any way to detect if someone tries to click a link on the already opened site or try to enter for first time the site from canActivate guard?

Michalis
- 6,686
- 13
- 52
- 78