Skip to content

Adding custom previous property to the $state object #1100

@thak123

Description

@thak123

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions