Preventing and Retrying Transitions

transition

When Ember Router transfers the transition object to various hooks, then hook can abort the transition by using transition.abort() method and can be re-attempted, if transition object is stored by using the transition.retry() method.

The below table shows different ways of preventing and retrying transitions during a route transition −

S.No.Transition & Description
1Preventing Transitions Via willTransition
It fires the willTransition action on currently active routes when you reattempt the transition by using the {{link-to}} helper or transitionTo method.
2Aborting Transitions
The destination routes use a transition object to abort the attempted transitions.

Previous Page:-Click Here

This Post Has 3 Comments

  1. super slot

    I loved your article.Thanks Again. Cool.

Leave a Reply