Route#setupController()

setupController (controller, model) public Defined in packages/ember-routing/lib/system/route.js:1605 A hook you can use to setup the controller for the current route. This method is called with the controller for the current route and the model supplied by the model hook. By default, the setupController hook sets the model property of the controller to the model. If you implement the setupController hook in your Route, it will prevent this default behavior. If you want to preserve that beh

Route#store()

store (store) private Defined in packages/ember-routing/lib/system/route.js:1531 Store property provides a hook for data persistence libraries to inject themselves. By default, this store property provides the exact same functionality previously in the model hook. Currently, the required interface is: store.find(modelName, findArguments) Parameters: store Object

Route#setup()

setupprivate Defined in packages/ember-routing/lib/system/route.js:1177 This hook is the entry point for router.js

Route#teardownViews()

teardownViewsprivate Defined in packages/ember-routing/lib/system/route.js:2059

Route#serializeQueryParam()

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

Route#serialize()

serialize (model, params) Objectpublic Defined in packages/ember-routing/lib/system/route.js:1566 A hook you can implement to convert the route's model into parameters for the URL. App.Router.map(function() { this.route('post', { path: '/posts/:post_id' }); }); App.PostRoute = Ember.Route.extend({ model: function(params) { // the server returns `{ id: 12 }` return Ember.$.getJSON('/posts/' + params.post_id); }, serialize: function(model) { // this will make the URL `/p

Route#send()

send (name, args) public Inherited from Ember.ActionHandler but overwritten in packages/ember-routing/lib/system/route.js:1129 Sends an action to the router, which will delegate it to the currently active route hierarchy per the bubbling rules explained under actions. Example App.Router.map(function() { this.route('index'); }); App.ApplicationRoute = Ember.Route.extend({ actions: { track: function(arg) { console.log(arg, 'was clicked'); } } }); App.IndexRoute = Ember.R

Route#serializeQueryParamKey()

serializeQueryParamKey (controllerPropertyName) private Defined in packages/ember-routing/lib/system/route.js:379 Serializes the query parameter key Parameters: controllerPropertyName String

Route#routeName

routeNameStringpublic Defined in packages/ember-routing/lib/system/route.js:131 The name of the route, dot-delimited. For example, a route found at app/routes/posts/post.js or app/posts/post/route.js (with pods) will have a routeName of posts.post.

Route#resetController()

resetController (controller, isExiting, transition) public Defined in packages/ember-routing/lib/system/route.js:444 Available since 1.7.0 A hook you can use to reset controller values either when the model changes or the route is exiting. App.ArticlesRoute = Ember.Route.extend({ // ... resetController: function(controller, isExiting, transition) { if (isExiting) { controller.set('page', 1); } } }); Parameters: controller Controller instance isExiting Boolean