DS.RecordArray#update()

update Defined in addon/-private/system/record-arrays/record-array.js:105 Used to get the latest version of all of the records in this array from the adapter. Example var people = store.peekAll('person'); people.get('isUpdating'); // false people.update().then(function() { people.get('isUpdating'); // false }); people.get('isUpdating'); // true

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

DS.Model.attributes

attributes{Ember.Map}static Defined in addon/-private/system/model/attr.js:18 A map whose keys are the attributes of the model (properties described by DS.attr) and whose values are the meta object for the property. Example app/models/person.js import DS from 'ember-data'; export default DS.Model.extend({ firstName: attr('string'), lastName: attr('string'), birthday: attr('date') }); import Ember from 'ember'; import Person from 'app/models/person'; var attributes = Ember.get(Perso

Observable#beginPropertyChanges()

beginPropertyChangesEmber.Observableprivate Defined in packages/ember-runtime/lib/mixins/observable.js:231 Begins a grouping of property changes. You can use this method to group property changes so that notifications will not be sent until the changes are finished. If you plan to make a large number of changes to an object at one time, you should call this method at the beginning of the changes to begin deferring change notifications. When you are done making changes, call endPropertyChang

DS.Serializer#serialize()

serialize (record, options) Object Defined in addon/serializer.js:57 The serialize method is used when a record is saved in order to convert the record into the form that your external data source expects. serialize takes an optional options hash with a single option: includeId: If this is true, serialize should include the ID in the serialized object it builds. Parameters: record DS.Model options [Object] Returns: Object

Enumerable#filterBy()

filterBy (key, value) Arraypublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:448 Returns an array with just the items with the matched property. You can pass an optional second argument with the target value. Otherwise this will match any property that evaluates to true. Parameters: key String the property to test value [*] optional value to test against. Returns: Array filtered array

DS.Store#recordWasInvalid()

recordWasInvalid (internalModel, errors) private Defined in addon/-private/system/store.js:1771 This method is called once the promise returned by an adapter's createRecord, updateRecord or deleteRecord is rejected with a DS.InvalidError. Parameters: internalModel InternalModel errors Object

Route#disconnectOutlet()

disconnectOutlet (options) public Defined in packages/ember-routing/lib/system/route.js:1957 Disconnects a view that has been rendered into an outlet. You may pass any or all of the following options to disconnectOutlet: outlet: the name of the outlet to clear (default: 'main') parentView: the name of the view containing the outlet to clear (default: the view rendered by the parent route) Example: App.ApplicationRoute = App.Route.extend({ actions: { showModal: function(evt) {

DS.DateTransform

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

Ember.createInjectionHelper()

createInjectionHelper (type, validator) private Defined in packages/ember-runtime/lib/inject.js:19 Available since 1.10.0 This method allows other Ember modules to register injection helpers for a given container type. Helpers are exported to the inject namespace as the container type itself. Parameters: type String The container type the helper will inject validator Function A validation callback that is executed at mixin-time