DS.SnapshotRecordArray#snapshots()

snapshotsArray Defined in addon/-private/system/snapshot-record-array.js:56 Get snapshots of the underlying record array Returns: Array Array of snapshots

TargetActionSupport#triggerAction()

triggerAction (opts) Booleanprivate Defined in packages/ember-runtime/lib/mixins/target_action_support.js:44 Send an action with an actionContext to a target. The action, actionContext and target will be retrieved from properties of the object. For example: App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, { target: Ember.computed.alias('controller'), action: 'save', actionContext: Ember.computed.alias('context'), click() { this.triggerAction(); // Sends the `sav

RSVP.defer()

defer (label) Objectstatic Defined in bower_components/rsvp/lib/rsvp/defer.js:3 RSVP.defer returns an object similar to jQuery's $.Deferred. RSVP.defer should be used when porting over code reliant on $.Deferred's interface. New code should use the RSVP.Promise constructor instead. The object returned from RSVP.defer is a plain object with three properties: promise - an RSVP.Promise. reject - a function that causes the promise property on this object to become rejected resolve - a function

MutableEnumerable#addObject()

addObject (object) Objectpublic Defined in packages/ember-runtime/lib/mixins/mutable_enumerable.js:52 Required. You must implement this method to apply this mixin. Attempts to add the passed object to the receiver if the object is not already present in the collection. If the object is present, this method has no effect. If the passed object is of a type not supported by the receiver, then this method should raise an exception. Parameters: object Object The object to add to the enumera

DS.RESTAdapter#headers

headers{Object} Defined in addon/adapters/rest.js:384 Some APIs require HTTP headers, e.g. to provide an API key. Arbitrary headers can be set as key/value pairs on the RESTAdapter's headers object and Ember Data will send them along with each ajax request. For dynamic headers see headers customization. app/adapters/application.js import DS from 'ember-data'; export default DS.RESTAdapter.extend({ headers: { "API_KEY": "secret key", "ANOTHER_HEADER": "Some header value" } });

ContainerProxyMixin#_lookupFactory()

_lookupFactory (fullName) Anyprivate Defined in packages/ember-runtime/lib/mixins/container_proxy.js:97 Given a fullName return the corresponding factory. Parameters: fullName String Returns: Any

DS.NumberTransform

DS.NumberTransform Class Extends: DS.Transform Defined in: addon/-private/transforms/number.js:10 Module: ember-data The DS.NumberTransform class is used to serialize and deserialize numeric attributes on Ember Data record objects. This transform is used when number is passed as the type parameter to the DS.attr function. Usage app/models/score.js import DS from 'ember-data'; export default DS.Model.extend({ value: DS.attr('number'), player: DS.belongsTo('player'), date: DS.attr('da

DS.Errors#unknownProperty()

unknownPropertyprivate Defined in addon/-private/system/model/errors.js:184

Enumerable#includes()

includes (obj) Booleanpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:1115 Returns true if the passed object can be found in the enumerable. [1, 2, 3].includes(2); // true [1, 2, 3].includes(4); // false [1, 2, undefined].includes(undefined); // true [1, 2, null].includes(null); // true [1, 2, NaN].includes(NaN); // true Parameters: obj Object The object to search for. Returns: Boolean `t

DS.Store#updateId()

updateId (internalModel, data) private Defined in addon/-private/system/store.js:1799 When an adapter's createRecord, updateRecord or deleteRecord resolves with data, this method extracts the ID from the supplied data. Parameters: internalModel InternalModel data Object