Skip to content

Adding custom previous property to the $state object #1100

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

Closed
thak123 opened this issue May 27, 2014 · 1 comment
Closed

Adding custom previous property to the $state object #1100

thak123 opened this issue May 27, 2014 · 1 comment

Comments

@thak123
Copy link

thak123 commented May 27, 2014

Ability to remember the previous state from which the current state was reached ...

Is there a way to add custom previous property to the $state object in the controller when i am changing the the State...

For ex i am on state A going to state B and i can go to state C from state B also from D i can go to State C ,

i want to remember from which state i jumped to state C ..i.e either B or D

So may be we can have a construct which takes in the custom properties and which can be used later when going back..

So i will just say $state.goBack()

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

No branches or pull requests

2 participants