Closed nahuelramos closed 7 years ago
Agreed, this would be really nice. Unfortunately it's not possible in the Future States architecture. The future state code listens for the $stateNotFound
event, which is emitted when you go to newFutureState.name
which doesn't exist. That promise must always be rejected for the not found event to fire. A new $state.go()
is run after the future state is loaded.
In ui-router 1.0 (which has future states baked in), this works as you expect. The promise returned from $state.go()
resolves after the future state is loaded and transitioned to.
But The transition occurs satisfactorily.