Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about angular-router-guards

Read more about angular-router-guards

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - angular-router-guards

Redirect to common error.component.html with Authguard

I'm trying to handle errors in Angular using Guards. I have a role.guard that allows the user to get in certain paths depending on its role. I also have an auth.guard that does the same but depending ...
test-img

user16241255

angular

error-handling

frontend

angular-components

angular-router-guards

Votes: 0

Answers: 1

Latest Answer

The first option is to use a query parameter and then subscribe to it inside the component. You will have an affected URL in this case. The second option is to add a new error service and register it...
test-img

Anton Hirov

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved