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

Enumerable#setEach()

setEach (key, value) Objectpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:310 Sets the value on the named property for each member. This is more ergonomic than using other methods defined on this helper. If the object implements Ember.Observable, the value will be changed to set(), otherwise it will be set directly. null objects are skipped. Parameters: key String The key to set value Object The object to set Returns: Object receiver

DS.Store#recordWasError()

recordWasError (internalModel, error) private Defined in addon/-private/system/store.js:1785 This method is called once the promise returned by an adapter's createRecord, updateRecord or deleteRecord is rejected (with anything other than a DS.InvalidError). Parameters: internalModel InternalModel error Error

DS.JSONAPISerializer#serializeAttribute()

serializeAttribute (snapshot, json, key, attribute) Inherited from DS.JSONSerializer but overwritten in addon/serializers/json-api.js:487 Parameters: snapshot DS.Snapshot json Object key String attribute Object

Test#originalMethods

originalMethods{Object}private Defined in packages/ember-testing/lib/ext/application.js:29 Available since 1.3.0 This property will contain the original methods that were registered on the helperContainer before injectTestHelpers is called. When removeTestHelpers is called, these methods are restored to the helperContainer. Default: {}

Test.QUnitAdapter

Ember.Test.QUnitAdapter Class PUBLIC Extends: Ember.Test.Adapter Defined in: packages/ember-testing/lib/adapters/qunit.js:4 Module: ember This class implements the methods defined by Ember.Test.Adapter for the QUnit testing framework.

MutableArray

Ember.MutableArray Class PUBLIC Uses: Ember.Array Uses: Ember.MutableEnumerable Defined in: packages/ember-runtime/lib/mixins/mutable_array.js:46 Module: ember-runtime This mixin defines the API for modifying array-like objects. These methods can be applied only to a collection that keeps its items in an ordered set. It builds upon the Array mixin and adds methods to modify the array. One concrete implementations of this class include ArrayProxy. It is important to use the methods in this

Built-in Helpers

Built-in Helpers Built-in Helpers In the last section you learned how to write a helper. A helper is usually a simple function that can be used in any template. Ember comes with a few helpers that can make developing your templates a bit easier. These helpers can allow you to be more dynamic in passing data to another helper or component. Using a helper to get a property dynamically The {{get}} helper makes it easy to dynamically send the value of a variable to another helper or component. Th

DS.EmbeddedRecordsMixin#serializeBelongsTo()

serializeBelongsTo (snapshot, json, relationship) Defined in addon/serializers/embedded-records-mixin.js:141 Serialize belongsTo relationship when it is configured as an embedded object. This example of an author model belongs to a post model: Post = DS.Model.extend({ title: DS.attr('string'), body: DS.attr('string'), author: DS.belongsTo('author') }); Author = DS.Model.extend({ name: DS.attr('string'), post: DS.belongsTo('post') }); Use a custom (type) seriali

DataAdapter#columnsForType()

columnsForType (type) Arrayprivate Defined in packages/ember-extension-support/lib/data_adapter.js:264 Get the columns for a given model type. Parameters: type Class The model type. Returns: Array An array of columns of the following format: name: {String} The name of the column. desc: {String} Humanized description (what would show in a table column name).