DS.EmbeddedRecordsMixin

DS.EmbeddedRecordsMixin Class Defined in: addon/serializers/embedded-records-mixin.js:8 Module: ember-data Using Embedded Records DS.EmbeddedRecordsMixin supports serializing embedded records. To set up embedded records, include the mixin when extending a serializer, then define and configure embedded (model) relationships. Below is an example of a per-type serializer (post type). app/serializers/post.js import DS from 'ember-data'; export default DS.RESTSerializer.extend(DS.EmbeddedRecor

DS.Model#toJSON()

toJSON (options) Object Defined in addon/-private/system/model/model.js:400 Use DS.JSONSerializer to get the JSON representation of a record. toJSON takes an optional hash as a parameter, currently supported options are: includeId: true if the record's ID should be included in the JSON representation. Parameters: options Object Returns: Object A JSON representation of the object.

Ember.warn()

warn (message, test, options) public Defined in packages/ember-debug/lib/warn.js:26 Display a warning with the provided message. In a production build, this method is defined as an empty function (NOP). Uses of this method in Ember itself are stripped from the ember.prod.js build. Parameters: message String A warning to display. test Boolean An optional boolean. If falsy, the warning will be displayed. options Object An object that can be used to pass a unique `id` for this war

PromiseProxyMixin#finally()

finally (callback) RSVP.Promisepublic Defined in packages/ember-runtime/lib/mixins/promise_proxy.js:190 Available since 1.3.0 An alias to the proxied promise's finally. See RSVP.Promise.finally. Parameters: callback Function Returns: RSVP.Promise

RSVP.defer()

defer (label) Objectstatic Defined in bower_components/rsvp/lib/rsvp/defer.js:3 RSVP.defer returns an object similar to jQuery's $.Deferred. RSVP.defer should be used when porting over code reliant on $.Deferred's interface. New code should use the RSVP.Promise constructor instead. The object returned from RSVP.defer is a plain object with three properties: promise - an RSVP.Promise. reject - a function that causes the promise property on this object to become rejected resolve - a function

Registry#normalize()

normalize (fullName) Stringprivate Defined in packages/container/lib/registry.js:303 Normalize a fullName based on the application's conventions Parameters: fullName String Returns: String normalized fullName

Descriptor

Descriptor Class PRIVATE Defined in: packages/ember-metal/lib/properties.js:13 Module: ember-metal Objects of this type can implement an interface to respond to requests to get and set. The default implementation handles simple properties.

ViewTargetActionSupport#willInsertElement event

willInsertElementpublic Defined in packages/ember-views/lib/mixins/view_support.js:297 Called when a view is going to insert an element into the DOM.

Evented#on()

on (name, target, method) public Defined in packages/ember-runtime/lib/mixins/evented.js:52 Subscribes to a named event with given function. person.on('didLoad', function() { // fired once the person has loaded }); An optional target can be passed in as the 2nd argument that will be set as the "this" for the callback. This is a good way to give your function access to the object triggering the event. When the target parameter is used the callback becomes the third argument. Parameters:

Dependency Injection

Dependency Injection Ember applications utilize the dependency injection ("DI") design pattern to declare and instantiate classes of objects and dependencies between them. Applications and application instances each serve a role in Ember's DI implementation. An Ember.Application serves as a "registry" for dependency declarations. Factories (i.e. classes) are registered with an application, as well as rules about "injecting" dependencies that are applied when objects are instantiated. An Ember