Router Preventing Transitions Via willTransition
It fires the willTransition action on currently active routes when you re-attempt the transition by using the {{link-to}} helper or the transitionTo method. Syntax Ember.Route.extend ({ actions: { willTransition(transition) { //handle the transition } } });…