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

how to set defaultRedirectTo #237

Open naji-makhoul opened 1 month ago

naji-makhoul commented 1 month ago

by documentation there https://github.com/AlexKhymenko/ngx-permissions/wiki/Usage-with-routes#default-redirection-configuration-service is a service NgxpermissionsConfigurationService this.ngxConfigurationService.defaultRedirectTo = 'login' but it's not working/not updated..

i can see there is an open pull request https://github.com/AlexKhymenko/ngx-permissions/pull/179

im looking to set defaultRedirectTo once for all routes