EmberJS – Router Aborting Transitions

Transitions

The destination routes use a transition object to abort the attempted transitions.

Syntax

Ember.Route.extend ({
   actions: {
      willTransition(transition) {
      //do the condition for abort transiton
      transition.abort();
   }
});

For example, refer this link chapter. This depicts the aborting transitions on active route by using the willTransition action.

Previous Page:-Click Here

Leave a Reply