I am using ui-router. I have a state called user
which displays a list of users and another state called user.edit
which displays a form with a submit button. It is a nested state of user
. If the user clicks submit the state will be transfered back to user
like that:
$state.transitionTo('user');
I would like the Controller of the user
state to recognize that stateTransition and update some data.
I don't know where to start looking for a solution and would be glad for any hint.