Skip to content
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

Ability to remove states from $stateProvider #1095

Closed
JensEger opened this issue May 22, 2014 · 7 comments
Closed

Ability to remove states from $stateProvider #1095

JensEger opened this issue May 22, 2014 · 7 comments

Comments

@JensEger
Copy link

We are perform lazy state binding. This brings the advantage, that a authenticated (or even a unauthenticated) User can "see" only his states / routes, which is also a security reason.

When a user logs out, i am not able to clear the lazy registered routes. I would like this to be implemented. This could be a really interessting feture, because i saw this lazy registration in other SPA's .

Suggested usage:

$stateProviderService.removeState('statename')
@JensEger JensEger changed the title Ability to remove states from $stateProvider(Service) Ability to remove states from $stateProvider Jun 1, 2014
@baudetail
Copy link

I would very much like to join this request. This feature might not be used very often, but it is very useful for extended use of ui-router.

@christopherthielen
Copy link
Contributor

I think this has merit but will have to wait until after the current refactor efforts are complete.

@milkshoes
Copy link

👍 We too are performing lazy state binding. We must make sure that an authenticated (or even a unauthenticated) User can "see" only his states / routes, which is also a security reason!

When a user logs out, i am not able to clear the lazy registered routes and this almost seems essential from a security perspective. Unless maybe there is a way to remove or delete a state that I'm not aware of?

@jdwilkin
Copy link

👍 please do this, thx :)

@jasonmontalto
Copy link

👍 adding to the chorus! This is def a must have for our post authentication state assignments.

@nateabele
Copy link
Contributor

Yup, noted. It's on the roadmap. Locking the issue before we get bombarded with +1's.

@angular-ui angular-ui locked and limited conversation to collaborators Dec 5, 2014
@christopherthielen christopherthielen added this to the 1.0.0-beta.2 milestone Aug 16, 2016
@christopherthielen
Copy link
Contributor

Closed by 44579ec

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants