Route#loading event

loading (transition, route) public Defined in packages/ember-routing/lib/system/route.js:612 Available since 1.2.0 The loading action is fired on the route when a route's model hook returns a promise that is not already resolved. The current Transition object is the first parameter and the route that triggered the loading event is the second parameter. App.ApplicationRoute = Ember.Route.extend({ actions: { loading: function(transition, route) { let controller = this.controllerFo

Route#intermediateTransitionTo()

intermediateTransitionTo (name, models) public Defined in packages/ember-routing/lib/system/route.js:1045 Available since 1.2.0 Perform a synchronous transition into another route without attempting to resolve promises, update the URL, or abort any currently active asynchronous transitions (i.e. regular transitions caused by transitionTo or URL changes). This method is handy for performing intermediate transitions on the way to a final destination route, and is called internally by the defa

Route#error event

error (error, transition) public Defined in packages/ember-routing/lib/system/route.js:640 When attempting to transition into a route, any of the hooks may return a promise that rejects, at which point an error action will be fired on the partially-entered routes, allowing for per-route error handling logic, or shared error handling logic defined on a parent route. Here is an example of an error handler that will be invoked for rejected promises from the various hooks on the route, as well

Route#exit()

exitprivate Defined in packages/ember-routing/lib/system/route.js:469

Route#findModel()

findModel (type, value) private Defined in packages/ember-routing/lib/system/route.js:1519 Parameters: type String the model type value Object the value passed to find

Route#generateController()

generateController (name, model) private Defined in packages/ember-routing/lib/system/route.js:1711 Generates a controller for a route. Example App.PostRoute = Ember.Route.extend({ setupController: function(controller, post) { this._super(controller, post); this.generateController('posts', post); } }); Parameters: name String the name of the controller model Object the model to infer the type of the controller (optional)

Route#enter()

enterprivate Defined in packages/ember-routing/lib/system/route.js:493

Route#deserializeQueryParam()

deserializeQueryParam (value, urlKey, defaultValueType) private Defined in packages/ember-routing/lib/system/route.js:409 Deserializes value of the query parameter based on defaultValueType Parameters: value Object urlKey String defaultValueType String

Route#didTransition event

didTransitionpublic Defined in packages/ember-routing/lib/system/route.js:588 Available since 1.2.0 The didTransition action is fired after a transition has successfully been completed. This occurs after the normal model hooks (beforeModel, model, afterModel, setupController) have resolved. The didTransition action has no arguments, however, it can be useful for tracking page views or resetting state on the controller. App.LoginRoute = Ember.Route.extend({ actions: { didTransition: fu

Route#disconnectOutlet()

disconnectOutlet (options) public Defined in packages/ember-routing/lib/system/route.js:1957 Disconnects a view that has been rendered into an outlet. You may pass any or all of the following options to disconnectOutlet: outlet: the name of the outlet to clear (default: 'main') parentView: the name of the view containing the outlet to clear (default: the view rendered by the parent route) Example: App.ApplicationRoute = App.Route.extend({ actions: { showModal: function(evt) {