DS.Snapshot#eachRelationship()

eachRelationship (callback, binding) Defined in addon/-private/system/snapshot.js:330 Iterates through all the relationships of the model, calling the passed function on each relationship. Example snapshot.eachRelationship(function(name, relationship) { // ... }); Parameters: callback Function the callback to execute binding [Object] the value to which the callback's `this` should be bound

DS.RESTAdapter#isSuccess()

isSuccess (status, headers, payload) Boolean Defined in addon/adapters/rest.js:945 Available since 1.13.0 Default handleResponse implementation uses this hook to decide if the response is a success. Parameters: status Number headers Object payload Object Returns: Boolean

DefaultResolver#resolveRoute()

resolveRoute (parsedName) protected Defined in packages/ember-application/lib/system/resolver.js:340 Lookup the route using resolveOther Parameters: parsedName Object a parseName object with the parsed fullName lookup string

MutableArray#includes()

includes (obj, startAt) Booleanpublic Inherited from Ember.Enumerable but overwritten in packages/ember-runtime/lib/mixins/array.js:593 Returns true if the passed object can be found in the array. This method is a Polyfill for ES 2016 Array.includes. If no startAt argument is given, the starting location to search is 0. If it's negative, searches from the index of this.length + startAt by asc. [1, 2, 3].includes(2); // true [1, 2, 3].includes(4); // false [1, 2, 3].includes(3, 2);

DS.Store#buildRecord()

buildRecord (type, id, data) InternalModelprivate Defined in addon/-private/system/store.js:2299 Build a brand new record for a given type, ID, and initial data. Parameters: type DS.Model id String data Object Returns: InternalModel internal model

Evented#on()

on (name, target, method) public Defined in packages/ember-runtime/lib/mixins/evented.js:52 Subscribes to a named event with given function. person.on('didLoad', function() { // fired once the person has loaded }); An optional target can be passed in as the 2nd argument that will be set as the "this" for the callback. This is a good way to give your function access to the object triggering the event. When the target parameter is used the callback becomes the third argument. Parameters:

Evented

Ember.Evented Class PUBLIC Defined in: packages/ember-runtime/lib/mixins/evented.js:14 Module: ember-runtime This mixin allows for Ember objects to subscribe to and emit events. App.Person = Ember.Object.extend(Ember.Evented, { greet: function() { // ... this.trigger('greet'); } }); var person = App.Person.create(); person.on('greet', function() { console.log('Our person has greeted'); }); person.greet(); // outputs: 'Our person has greeted' You can also chain multiple e

Observable#propertyDidChange()

propertyDidChange (keyName) Ember.Observableprivate Defined in packages/ember-runtime/lib/mixins/observable.js:294 Notify the observer system that a property has just changed. Sometimes you need to change a value directly or indirectly without actually calling get() or set() on it. In this case, you can use this method and propertyWillChange() instead. Calling these two methods together will notify all observers that the property has potentially changed value. Note that you must always call

DS.RESTAdapter#createRecord()

createRecord (store, type, snapshot) Promise Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:700 Called by the store when a newly created record is saved via the save method on a model record instance. The createRecord method serializes the record and makes an Ajax (HTTP POST) request to a URL computed by buildURL. See serialize for information on how to customize the serialized form of a record. Parameters: store DS.Store type DS.Model snapshot DS.Snapshot

DS.RESTAdapter#deleteRecord()

deleteRecord (store, type, snapshot) Promise Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:772 Called by the store when a record is deleted. The deleteRecord method makes an Ajax (HTTP DELETE) request to a URL computed by buildURL. Parameters: store DS.Store type DS.Model snapshot DS.Snapshot Returns: Promise promise