Is there a way to call $state.goto with such kind of parameters that they would be accessible inside of transition handlers, but wouldn't make it into the URL? For example, I'd like to handle a transition from entity/new to entity/210 in a special way when the Save button is pressed to create a new entity. It's not the same as just a transition from entity/new to an existing entity (say entity/209), so I want to differentiate these situations in the transition handler.
Is there a way to call
$state.goto
with such kind of parameters that they would be accessible inside of transition handlers, but wouldn't make it into the URL? For example, I'd like to handle a transition fromentity/new
toentity/210
in a special way when the Save button is pressed to create a new entity. It's not the same as just a transition fromentity/new
to an existing entity (sayentity/209
), so I want to differentiate these situations in the transition handler.