AlexKhymenko / ngx-permissions

Permission and roles based access control for your angular(angular 2,4,5,6,7,9+) applications(AOT, lazy modules compatible
MIT License
936 stars 126 forks source link

redirectTo not working #150

Closed quan1997ap closed 3 years ago

quan1997ap commented 3 years ago

Hi dev team. I try use your library in my project and config like image below. But it only work when user has true permission ( loaded before ). When change another permission ( not loaded before ). It not redirect to error path. I dont know what's a reason. Can u help me! Thanks all.

I am using "ngx-permissions": "^8.1.1", angular 10

image

AlexKhymenko commented 3 years ago

@quan1997ap the library uses https://angular.io/api/router/Router#navigate under the hood. Can You navigate with this function ?

AlexKhymenko commented 3 years ago

Hi think this is resolved? If no please reopen issue