DS.Snapshot#attributes()

attributesObject Defined in addon/-private/system/snapshot.js:118 Returns all attributes and their corresponding values. Example // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); postSnapshot.attributes(); // => { author: 'Tomster', title: 'Ember.js rocks' } Returns: Object All attributes of the current snapshot

DS.JSONSerializer#normalizeCreateRecordResponse()

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

ApplicationInstance.BootOptions#shouldRender

shouldRenderbooleanpublic Defined in packages/ember-application/lib/system/application-instance.js:376 Disable rendering completely. When this flag is set to true, it will disable the entire rendering pipeline. Essentially, this puts the app into "routing-only" mode. No templates will be rendered, and no Components will be created. Default: true

DS.Transform#serialize()

serialize (deserialized, options) Defined in addon/transform.js:70 When given a deserialized value from a record attribute this method must return the serialized value. Example serialize: function(deserialized, options) { return Ember.isEmpty(deserialized) ? null : Number(deserialized); } Parameters: deserialized The deserialized value options hash of options passed to `DS.attr` Returns: The serialized value

Ember.computed.max()

max (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:78 A computed property that calculates the maximum value in the dependent array. This will return -Infinity when the dependent array is empty. let Person = Ember.Object.extend({ childAges: Ember.computed.mapBy('children', 'age'), maxChildAge: Ember.computed.max('childAges') }); let lordByron = Person.create({ children: [] }); lordByron.get('maxChildAge'); // -Infini

DS.Errors#errorsFor()

errorsFor (attribute) Array Defined in addon/-private/system/model/errors.js:136 Returns errors for a given attribute var user = store.createRecord('user', { username: 'tomster', email: 'invalidEmail' }); user.save().catch(function(){ user.get('errors').errorsFor('email'); // returns: // [{attribute: "email", message: "Doesn't look like a valid email."}] }); Parameters: attribute String Returns: Array

String#w()

w (str) Arraypublic Defined in packages/ember-runtime/lib/system/string.js:206 Splits a string into separate units separated by spaces, eliminating any empty strings in the process. This is a convenience method for split that is mostly useful when applied to the String.prototype. Ember.String.w("alpha beta gamma").forEach(function(key) { console.log(key); }); // > alpha // > beta // > gamma Parameters: str String The string to split Returns: Array array containing th

Component#readDOMAttr()

readDOMAttr (name) public Defined in packages/ember-htmlbars/lib/component.js:160 Normally, Ember's component model is "write-only". The component takes a bunch of attributes that it got passed in, and uses them to render its template. One nice thing about this model is that if you try to set a value to the same thing as last time, Ember (through HTMLBars) will avoid doing any work on the DOM. This is not just a performance optimization. If an attribute has not changed, it is important not

DS.Model#trigger()

trigger (name) private Defined in addon/-private/system/model/model.js:783 Override the default event firing from Ember.Evented to also call methods with the given name. Parameters: name String

Array#slice()

slice (beginIndex, endIndex) Arraypublic Defined in packages/ember-runtime/lib/mixins/array.js:324 Returns a new array that is a slice of the receiver. This implementation uses the observable array methods to retrieve the objects for the new slice. let arr = ['red', 'green', 'blue']; arr.slice(0); // ['red', 'green', 'blue'] arr.slice(0, 2); // ['red', 'green'] arr.slice(1, 100); // ['green', 'blue'] Parameters: beginIndex Number (Optional) index to begin slicing from. en