Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How to override canActivateChild on specific routes? #3775


User avatar
0
bilalhaidar created

Hello, The project is configured such that canActivate and canActivateChild both run the same code. If I want to run a specific permission check on a specific route, can I override the canActivateChild or canActivate using a new guard?

Thanks


2 Answer(s)
  • User Avatar
    0
    bilalhaidar created

    Any assistance is appreciated. Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @bilalhaidar,

    As far as I know, you can use different guards for canActivateChild. You can check angular's documentation for that.

    Thanks.