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.setOwner()

setOwner (object) Objectpublic Defined in packages/container/lib/owner.js:54 Available since 2.3.0 setOwner forces a new owner on a given object instance. This is primarily useful in some testing cases. Parameters: object Object An object with an owner. Returns: Object An owner object.

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

Templates.helpers.log()

log (values) public Defined in packages/ember-htmlbars/lib/helpers/log.js:8 log allows you to output the value of variables in the current rendering context. log also accepts primitive types such as strings or numbers. {{log "myVariable:" myVariable }} Parameters: values *

TextArea

Ember.TextArea Class PUBLIC Extends: Ember.Component Uses: Ember.TextSupport Defined in: packages/ember-htmlbars/lib/components/text_area.js:8 Module: ember-views The internal class used to create textarea element when the {{textarea}} helper is used. See Ember.Templates.helpers.textarea for usage details. Layout and LayoutName properties Because HTML textarea elements do not contain inner HTML the layout and layoutName properties will not be applied. See Ember.View's layout section for mo

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.

DS.JSONSerializer#normalizeFindRecordResponse()

normalizeFindRecordResponse (store, primaryModelClass, payload, id, requestType) Object Defined in addon/serializers/json.js:262 Available since 1.13.0 Parameters: store DS.Store primaryModelClass DS.Model payload Object id String|Number requestType String Returns: Object JSON-API Document

DS.JSONSerializer#attrs

attrs{Object} Defined in addon/serializers/json.js:111 The attrs object can be used to declare a simple mapping between property names on DS.Model records and payload keys in the serialized JSON object representing the record. An object with the property key can also be used to designate the attribute's key on the response payload. Example app/models/person.js import DS from 'ember-data'; export default DS.Model.extend({ firstName: DS.attr('string'), lastName: DS.attr('string'), occu

Objects in Ember

Objects in Ember You'll notice standard JavaScript class patterns and the new ES2015 classes aren't widely used in Ember. Plain objects can still be found, and sometimes they're referred to as "hashes". JavaScript objects don't support the observation of property value changes. Consequently, if an object is going to participate in Ember's binding system you may see an Ember.Object instead of a plain object. Ember.Object also provides a class system, supporting features like mixins and constru

Deploying

Deploying To deploy an Ember application simply transfer the output from ember build to a web server. This can be done with standard Unix file transfer tools such as rsync or scp. There are also services that will let you deploy easily. Deploying with scp You can deploy your application to any web server by copying the output from ember build to any web server: ember build scp -r dist/* myserver.com:/var/www/public/ Deploying to surge.sh Surge.sh allows you to publish any folder to the web f