DS.Model#errors

errors{DS.Errors} Defined in addon/-private/system/model/model.js:309 When the record is in the invalid state this object will contain any errors returned by the adapter. When present the errors hash contains keys corresponding to the invalid property names and values which are arrays of Javascript objects with two keys: message A string containing the error message from the backend attribute The name of the property associated with this error message record.get('errors.length'); // 0 rec

DS.Model#rolledBack event

rolledBack Defined in addon/-private/system/model/model.js:472 Fired when the record is rolled back.

Array#removeArrayObserver()

removeArrayObserver (target, opts) Ember.Arraypublic Defined in packages/ember-runtime/lib/mixins/array.js:490 Removes an array observer from the object if the observer is current registered. Calling this method multiple times with the same object will have no effect. Parameters: target Object The object observing the array. opts Object Optional hash of configuration options including `willChange` and `didChange` option. Returns: Ember.Array receiver

DataAdapter#watchModelTypes()

watchModelTypes (typesAdded, typesUpdated) Functionpublic Defined in packages/ember-extension-support/lib/data_adapter.js:129 Fetch the model types and observe them for changes. Parameters: typesAdded Function Callback to call to add types. Takes an array of objects containing wrapped types (returned from `wrapModelType`). typesUpdated Function Callback to call when a type has changed. Takes an array of objects containing wrapped types. Returns: Function Method to call to rem

Inspecting Objects via the Container

Inspecting Objects via the Container Every Ember application has a container that maintains object instances for you. You can inspect these instances using the Container tab. This is useful for objects that don't fall under a dedicated menu, such as services. Click on the Container tab, and you will see a list of instances the container is holding. Click on a type to see the list of all instances of that type maintained by the container. Inspecting Instances Click on a row to inspect a given

ViewTargetActionSupport#findElementInParentElement()

findElementInParentElement (parentElement) DOMElementprivate Defined in packages/ember-views/lib/mixins/view_support.js:280 Attempts to discover the element in the parent element. The default implementation looks for an element with an ID of elementId (or the view's guid if elementId is null). You can override this method to provide your own form of lookup. For example, if you want to discover your element using a CSS class name instead of an ID. Parameters: parentElement DOMElement Th

Route#deserializeQueryParam()

deserializeQueryParam (value, urlKey, defaultValueType) private Defined in packages/ember-routing/lib/system/route.js:409 Deserializes value of the query parameter based on defaultValueType Parameters: value Object urlKey String defaultValueType String

Ember.wrap()

wrap (func, superFunc) Functionprivate Defined in packages/ember-metal/lib/utils.js:276 Wraps the passed function so that this._super will point to the superFunc when the function is invoked. This is the primitive we use to implement calls to super. Parameters: func Function The function to call superFunc Function The super function. Returns: Function wrapped function.

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

Ember.computed.gt()

gt (dependentKey, value) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:287 A computed property that returns true if the provided dependent property is greater than the provided value. Example let Hamster = Ember.Object.extend({ hasTooManyBananas: Ember.computed.gt('numBananas', 10) }); let hamster = Hamster.create(); hamster.get('hasTooManyBananas'); // false hamster.set('numBananas', 3); hamster.get('hasTooManyBananas'); // false hamster