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

String#dasherize()

dasherize (str) Stringpublic Defined in packages/ember-runtime/lib/system/string.js:245 Replaces underscores, spaces, or camelCase with dashes. 'innerHTML'.dasherize(); // 'inner-html' 'action_name'.dasherize(); // 'action-name' 'css-class-name'.dasherize(); // 'css-class-name' 'my favorite items'.dasherize(); // 'my-favorite-items' 'privateDocs/ownerInvoice'.dasherize(); // 'private-docs/owner-invoice' Parameters: str String The string to dasherize. Returns:

DS.RESTAdapter#coalesceFindRequests

coalesceFindRequests{boolean} Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:300 By default the RESTAdapter will send each find request coming from a store.find or from accessing a relationship separately to the server. If your server supports passing ids as a query string, you can set coalesceFindRequests to true to coalesce all find requests within a single runloop. For example, if you have an initial payload of: { post: { id: 1, comments: [1, 2] } } By d

DS.BuildURLMixin

DS.BuildURLMixin Class Defined in: addon/-private/adapters/build-url-mixin.js:5 Module: ember-data WARNING: This interface is likely to change in order to accomodate https://github.com/emberjs/rfcs/pull/4 Using BuildURLMixin To use url building, include the mixin when extending an adapter, and call buildURL where needed. The default behaviour is designed for RESTAdapter. Example export default DS.Adapter.extend(BuildURLMixin, { findRecord: function(store, type, id, snapshot) {

Templates.helpers.each()

eachpublic Defined in packages/ember-htmlbars/lib/helpers/each.js:9 The {{#each}} helper loops over elements in a collection. It is an extension of the base Handlebars {{#each}} helper. The default behavior of {{#each}} is to yield its inner block once for every item in an array passing the item as the first block parameter. var developers = [{ name: 'Yehuda' },{ name: 'Tom' }, { name: 'Paul' }]; {{#each developers key="name" as |person|}} {{person.name}} {{! `this` is whatever it was

ViewTargetActionSupport#elementId

elementIdStringpublic Defined in packages/ember-views/lib/mixins/view_support.js:250 The HTML id of the view's element in the DOM. You can provide this value yourself but it must be unique (just as in HTML): {{my-component elementId="a-really-cool-id"}} If not manually set a default value will be provided by the framework. Once rendered an element's elementId is considered immutable and you should never change it. If you need to compute a dynamic value for the elementId, you should do th

Engine#runInstanceInitializers()

runInstanceInitializersprivate Defined in packages/ember-application/lib/system/engine.js:154 Available since 1.12.0

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

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.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