Base solution for your next web application
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

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

2 Answer(s)
  • User Avatar
    0
    bilalhaidar created

    Any assistance is appreciated. Thanks

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)