Route#controllerName

controllerNameStringpublic Defined in packages/ember-routing/lib/system/route.js:525 Available since 1.4.0 The name of the controller to associate with this route. By default, Ember will lookup a route's controller that matches the name of the route (i.e. App.PostController for App.PostRoute). However, if you would like to define a specific controller to use, you can do so using this property. This is useful in many ways, as the controller specified will be: passed to the setupController me

Route#controller

controllerEmber.Controllerpublic Defined in packages/ember-routing/lib/system/route.js:729 Available since 1.6.0 The controller associated with this route. Example App.FormRoute = Ember.Route.extend({ actions: { willTransition: function(transition) { if (this.controller.get('userHasEnteredData') && !confirm('Are you sure you want to abandon progress?')) { transition.abort(); } else { // Bubble the `willTransition` action so that //

Route#refresh()

refreshTransitionpublic Defined in packages/ember-routing/lib/system/route.js:1067 Available since 1.4.0 Refresh the model on this route and any child routes, firing the beforeModel, model, and afterModel hooks in a similar fashion to how routes are entered when transitioning in from other route. The current route params (e.g. article_id) will be passed in to the respective model hooks, and if a different model is returned, setupController and associated route hooks will re-fire as well. An

Ember.listenersFor()

listenersFor (obj, eventName) private Defined in packages/ember-metal/lib/events.js:257 Parameters: obj eventName String

LinkComponent#init()

initprivate Inherited from Ember.ViewTargetActionSupport but overwritten in packages/ember-htmlbars/lib/components/link-to.js:497 An overridable method called when LinkComponent objects are instantiated. Example: App.MyLinkComponent = Ember.LinkComponent.extend({ init: function() { this._super(...arguments); Ember.Logger.log('Event is ' + this.get('eventName')); } }); NOTE: If you do override init for a framework class like Ember.View, be sure to call this._super(...arguments)

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

DataAdapter#wrapModelType()

wrapModelType (klass, modelName) Objectprivate Defined in packages/ember-extension-support/lib/data_adapter.js:311 Wraps a given model type and observes changes to it. Parameters: klass Class A model class. modelName String Name of the class. Returns: Object Contains the wrapped type and the function to remove observers Format: type: {Object} The wrapped type. The wrapped type has the following format: name: {String} The name of the type. count: {Integer} The number of record

Inflector

Ember.Inflector Class Defined in: node_modules/ember-inflector/addon/lib/system/inflector.js:32 Module: ember-data Inflector.Ember provides a mechanism for supplying inflection rules for your application. Ember includes a default set of inflection rules, and provides an API for providing additional rules. Examples: Creating an inflector with no rules. var inflector = new Ember.Inflector(); Creating an inflector with the default ember ruleset. var inflector = new Ember.Inflector(Ember.Infl

DS.EmbeddedRecordsMixin#_extractEmbeddedRecords()

_extractEmbeddedRecordsprivate Defined in addon/serializers/embedded-records-mixin.js:530

DS.JSONAPISerializer#modelNameFromPayloadKey()

modelNameFromPayloadKey (key) String Inherited from DS.JSONSerializer but overwritten in addon/serializers/json-api.js:350 Parameters: key String Returns: String the model's modelName