DS.JSONSerializer#serializeHasMany()

serializeHasMany (snapshot, json, relationship) Defined in addon/serializers/json.js:1206 serializeHasMany can be used to customize how DS.hasMany properties are serialized. Example app/serializers/post.js import DS from 'ember-data'; export default DS.JSONSerializer.extend({ serializeHasMany: function(snapshot, json, relationship) { var key = relationship.key; if (key === 'comments') { return; } else { this._super.apply(this, arguments); } } }); Paramet

LinkComponent#init()

initprivate Inherited from Ember.ViewTargetActionSupport but overwritten in packages/ember-htmlbars/lib/components/link-to.js:497 An overridable method called when LinkComponent objects are instantiated. Example: App.MyLinkComponent = Ember.LinkComponent.extend({ init: function() { this._super(...arguments); Ember.Logger.log('Event is ' + this.get('eventName')); } }); NOTE: If you do override init for a framework class like Ember.View, be sure to call this._super(...arguments)

Router#transitionTo()

transitionTo (name, models, options) Transitionpublic Defined in packages/ember-routing/lib/system/router.js:346 Transition the application into another route. The route may be either a single route or route path: See Route.transitionTo for more info. Parameters: name String the name of the route or a URL models ...Object the model(s) or identifier(s) to be used while transitioning to the route. options [Object] optional hash with a queryParams property containing a mapping of

DS.PromiseObject

DS.PromiseObject Class Extends: Ember.ObjectProxy Uses: Ember.PromiseProxyMixin Defined in: addon/-private/system/promise-proxies.js:38 Module: ember-data A PromiseObject is an object that acts like both an Ember.Object and a promise. When the promise is resolved, then the resulting value will be set to the PromiseObject's content property. This makes it easy to create data bindings with the PromiseObject that will be updated when the promise resolves. For more information see the Ember.Pr

Observable#cacheFor()

cacheFor (keyName) Objectpublic Defined in packages/ember-runtime/lib/mixins/observable.js:490 Returns the cached value of a computed property, if it exists. This allows you to inspect the value of a computed property without accidentally invoking it if it is intended to be generated lazily. Parameters: keyName String Returns: Object The cached value of the computed property, if any

RSVP.all()

all (array, label) static Inherited from RSVP but overwritten in bower_components/rsvp/lib/rsvp/all.js:3 This is a convenient alias for RSVP.Promise.all. Parameters: array Array Array of promises. label String An optional label. This is useful for tooling.

DS.InvalidError

DS.InvalidError Class Defined in: addon/adapters/errors.js:58 Module: ember-data A DS.InvalidError is used by an adapter to signal the external API was unable to process a request because the content was not semantically correct or meaningful per the API. Usually this means a record failed some form of server side validation. When a promise from an adapter is rejected with a DS.InvalidError the record will transition to the invalid state and the errors will be set to the errors property on

DS#hasMany()

hasMany (type, options) Ember.computed Defined in addon/-private/system/relationships/has-many.js:11 DS.hasMany is used to define One-To-Many and Many-To-Many relationships on a DS.Model. DS.hasMany takes an optional hash as a second parameter, currently supported options are: async: A boolean value used to explicitly declare this to be an async relationship. inverse: A string used to identify the inverse property on a related model. One-To-Many To declare a one-to-many relationship betwe

DataAdapter#wrapRecord()

wrapRecord (record) Objectprivate Defined in packages/ember-extension-support/lib/data_adapter.js:414 Wraps a record and observers changes to it. Parameters: record Object The record instance. Returns: Object The wrapped record. Format: columnValues: {Array} searchKeywords: {Array}

MutableArray#removeObject()

removeObject (obj) Ember.Arraypublic Inherited from Ember.MutableEnumerable but overwritten in packages/ember-runtime/lib/mixins/mutable_array.js:351 Remove all occurrences of an object in the array. let cities = ['Chicago', 'Berlin', 'Lima', 'Chicago']; cities.removeObject('Chicago'); // ['Berlin', 'Lima'] cities.removeObject('Lima'); // ['Berlin'] cities.removeObject('Tokyo') // ['Berlin'] Parameters: obj * object to remove Returns: Ember.Array receiver