EmberJS - Router Aborting Transitions



The destination routes use a transition object to abort the attempted the 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.

emberjs_router.htm
Advertisements