DS.Adapter#findAll()

findAll (store, type, sinceToken, snapshotRecordArray) Promise Defined in addon/adapter.js:123 The findAll() method is used to retrieve all records for a given type. Example app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ findAll: function(store, type, sinceToken) { var query = { since: sinceToken }; return new Ember.RSVP.Promise(function(resolve, reject) { Ember.$.getJSON(`/${type.modelName}`, query).then(function(data) {

DS.SnapshotRecordArray#adapterOptions

adapterOptions{Object} Defined in addon/-private/system/snapshot-record-array.js:46 A hash of adapter options

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#namespace

namespace{String} Defined in addon/adapters/rest.js:349 Endpoint paths can be prefixed with a namespace by setting the namespace property on the adapter: app/adapters/application.js import DS from 'ember-data'; export default DS.RESTAdapter.extend({ namespace: 'api/1' }); Requests for the Post model would now target /api/1/post/.

ViewTargetActionSupport#append()

appendEmber.Viewprivate Defined in packages/ember-views/lib/mixins/view_support.js:229 Appends the view's element to the document body. If the view does not have an HTML representation yet the element will be generated automatically. If your application uses the rootElement property, you must append the view within that element. Rendering views outside of the rootElement is not supported. Note that this method just schedules the view to be appended; the DOM element will not be appended to t

ViewTargetActionSupport#nearestWithProperty()

nearestWithProperty (property) deprecatedprivate Defined in packages/ember-views/lib/mixins/view_support.js:44 use yield and contextual components for composition instead. Return the nearest ancestor that has a given property. Parameters: property String A property name Returns: Ember.View

RegistryProxyMixin#registerOptionsForType()

registerOptionsForType (type, options) public Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:162 Allow registering options for all factories of a type. let App = Ember.Application.create(); let appInstance = App.buildInstance(); // if all of type `connection` must not be singletons appInstance.optionsForType('connection', { singleton: false }); appInstance.register('connection:twitter', TwitterConnection); appInstance.register('connection:facebook', FacebookConnection); l

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

Ember.computed.lte()

lte (dependentKey, value) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:389 A computed property that returns true if the provided dependent property is less than or equal to the provided value. Example let Hamster = Ember.Object.extend({ needsMoreBananas: Ember.computed.lte('numBananas', 3) }); let hamster = Hamster.create(); hamster.get('needsMoreBananas'); // true hamster.set('numBananas', 5); hamster.get('needsMoreBananas'); // false h

DS.Model.create()

createprivatestatic Defined in addon/-private/system/model/model.js:970 Override the class' create() method to raise an error. This prevents end users from inadvertently calling create() instead of createRecord(). The store is still able to create instances by calling the _create() method. To create an instance of a DS.Model use store.createRecord.