-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing the States after logout #2711
Comments
The page is inaccessible. Also needs a plnkr example. |
Sorry for mentioning a dead link , The issue is that , I have used Future State Provider to build the states dynamically and now trying to remove/reset the states once the user logs out . How do i achieve that , The code for building the states are given below ,
|
There are hooks into ui-router that would work just fine:
|
@killerspaz I am not facing an issue to redirect user to the login page , I need to remove the dynamically created states once the user logs out . |
I would like to support this in the future, but it's not currently possible to remove state definitions. |
This is a prerequisite for #2739 |
I have a mod that adds a removeState method to $stateProvider and a remove method to $urlRoutesProvider that removes the associated rule. My problem is I forked the most recent version from GitHub, but the project won't build. I have opened an issue waiting for a response. In the interim I just did a 'copy pasta' of the distro version of the angular-ui-router.js and made the changes in there. Once I can build, I will make the changes to the TS files and make a pull request. |
I am facing this issue mentioned in page . I am building states dynamically using $futureStateProvider , and need to remove the states once the user logs out . Or else , the states will be defined again on login , and it breaks . Hoping for a solution.
THanks
The text was updated successfully, but these errors were encountered: