DS.Store#dataWasUpdated()

dataWasUpdated (type, internalModel) private Defined in addon/-private/system/store.js:1666 If the adapter updates attributes the record will notify the store to update its membership in any filters. To avoid thrashing, this method is invoked only once per run loop per record. Parameters: type Class internalModel InternalModel

DS.Store#createRecord()

createRecord (modelName, inputProperties) DS.Model Defined in addon/-private/system/store.js:298 Create a new record in the current store. The properties passed to this method are set on the newly created record. To create a new instance of a Post: store.createRecord('post', { title: "Rails is omakase" }); To create a new instance of a Post that has a relationship with a User record: var user = this.store.peekRecord('user', 1); store.createRecord('post', { title: "Rails is omakase",

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

DS.Store#adapterFor()

adapterFor (modelName) public Defined in addon/-private/system/store.js:2369 Returns an instance of the adapter for a given type. For example, adapterFor('person') will return an instance of App.PersonAdapter. If no App.PersonAdapter is found, this method will look for an App.ApplicationAdapter (the default adapter for your entire application). If no App.ApplicationAdapter is found, it will return the value of the defaultAdapter. Parameters: modelName String Returns: DS.Adapter

DS.Store#adapter

adapter{(DS.Adapter|String)} Defined in addon/-private/system/store.js:233 The adapter to use to communicate to a backend server or other persistence layer. This can be specified as an instance, class, or string. If you want to specify app/adapters/custom.js as a string, do: adapter: 'custom' Default: DS.JSONAPIAdapter

DS.Store

DS.Store Class Extends: Ember.Service Defined in: addon/-private/system/store.js:140 Module: ember-data The store contains all of the data for records loaded from the server. It is also responsible for creating instances of DS.Model that wrap the individual data for a record, so that they can be bound to in your Handlebars templates. Define your application's store like this: app/services/store.js import DS from 'ember-data'; export default DS.Store.extend({ }); Most Ember.js application

DS.SnapshotRecordArray#_snapshots

_snapshots{Array}private Defined in addon/-private/system/snapshot-record-array.js:14 An array of snapshots

DS.SnapshotRecordArray#_recordArray

_recordArray{Array}private Defined in addon/-private/system/snapshot-record-array.js:21 An array of records

DS.SnapshotRecordArray#type

type{DS.Model} Defined in addon/-private/system/snapshot-record-array.js:34 The type of the underlying records for the snapshots in the array, as a DS.Model

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