DS.JSONSerializer#extractId()

extractId (modelClass, resourceHash) String Defined in addon/serializers/json.js:550 Returns the resource's ID. Parameters: modelClass Object resourceHash Object Returns: String

RegistryProxyMixin#resolveRegistration()

resolveRegistration (fullName) Functionpublic Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:19 Given a fullName return the corresponding factory. Parameters: fullName String Returns: Function fullName's factory

DS.ForbiddenError

DS.ForbiddenError Class Defined in: addon/adapters/errors.js:140 Module: ember-data

Asynchronous Routing

Asynchronous Routing This section covers some more advanced features of the router and its capability for handling complex async logic within your app. A Word on Promises... Ember's approach to handling asynchronous logic in the router makes heavy use of the concept of Promises. In short, promises are objects that represent an eventual value. A promise can either fulfill (successfully resolve the value) or reject (fail to resolve the value). The way to retrieve this eventual value, or handle

DS.Model._create()

_createprivatestatic Defined in addon/-private/system/model/model.js:959 Alias DS.Model's create method to _create. This allows us to create DS.Model instances from within the store, but if end users accidentally call create() (instead of createRecord()), we can raise an error.

Test#unregisterWaiter()

unregisterWaiter (context, callback) public Defined in packages/ember-testing/lib/test/waiters.js:47 Available since 1.2.0 unregisterWaiter is used to unregister a callback that was registered with registerWaiter. Parameters: context Object (optional) callback Function

HTMLBars

Ember.HTMLBars Class Module: ember-htmlbars

Test#removeTestHelpers()

removeTestHelperspublic Defined in packages/ember-testing/lib/ext/application.js:138 This removes all helpers that have been registered, and resets and functions that were overridden by the helpers. Example: App.removeTestHelpers();

DS.Errors#_clear()

_clearprivate Defined in addon/-private/system/model/errors.js:379 Removes all error messages. to the record.

Specifying a Route's Model

Specifying a Route's Model Often, you'll want a template to display data from a model. Loading the appropriate model is one job of a route. For example, take this router: app/router.js Router.map(function() { this.route('favorite-posts'); }); To load a model for the favorite-posts route, you would use the model() hook in the favorite-posts route handler: app/routes/favorite-posts.js import Ember from 'ember'; export default Ember.Route.extend({ model() { return this.get('store').que