Ember.computed.filterBy()

filterBy (dependentKey, propertyKey, value) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:291 Filters the array by the property and value let Hamster = Ember.Object.extend({ remainingChores: Ember.computed.filterBy('chores', 'done', false) }); let hamster = Hamster.create({ chores: [ { name: 'cook', done: true }, { name: 'clean', done: true }, { name: 'write more unit tests', done: false } ] }); hamster.get('remaini

DS.Adapter#findMany()

findMany (store, type, ids, snapshots) Promise Defined in addon/adapter.js:423 The store will call findMany instead of multiple findRecord requests to find multiple records at once if coalesceFindRequests is true. app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ findMany(store, type, ids, snapshots) { return new Ember.RSVP.Promise(function(resolve, reject) { Ember.$.ajax({ type: 'GET', url: `/${type.modelName}/`,

DS.Snapshot#eachRelationship()

eachRelationship (callback, binding) Defined in addon/-private/system/snapshot.js:330 Iterates through all the relationships of the model, calling the passed function on each relationship. Example snapshot.eachRelationship(function(name, relationship) { // ... }); Parameters: callback Function the callback to execute binding [Object] the value to which the callback's `this` should be bound

Route#setupController()

setupController (controller, model) public Defined in packages/ember-routing/lib/system/route.js:1605 A hook you can use to setup the controller for the current route. This method is called with the controller for the current route and the model supplied by the model hook. By default, the setupController hook sets the model property of the controller to the model. If you implement the setupController hook in your Route, it will prevent this default behavior. If you want to preserve that beh

Observable#get()

get (keyName) Objectpublic Defined in packages/ember-runtime/lib/mixins/observable.js:100 Retrieves the value of a property from the object. This method is usually similar to using object[keyName] or object.keyName, however it supports both computed properties and the unknownProperty handler. Because get unifies the syntax for accessing all these kinds of properties, it can make many refactorings easier, such as replacing a simple property with a computed property, or vice versa. Computed P

DS.RecordArray#update()

update Defined in addon/-private/system/record-arrays/record-array.js:105 Used to get the latest version of all of the records in this array from the adapter. Example var people = store.peekAll('person'); people.get('isUpdating'); // false people.update().then(function() { people.get('isUpdating'); // false }); people.get('isUpdating'); // true

DS.Snapshot#changedAttributes()

changedAttributesObject Defined in addon/-private/system/snapshot.js:135 Returns all changed attributes and their old and new values. Example // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); postModel.set('title', 'Ember.js rocks!'); postSnapshot.changedAttributes(); // => { title: ['Ember.js rocks', 'Ember.js rocks!'] } Returns: Object All changed attributes of the current snapshot

Map

Ember.Map Class PRIVATE Defined in: packages/ember-metal/lib/map.js:222 Module: ember-metal A Map stores values indexed by keys. Unlike JavaScript's default Objects, the keys of a Map can be any JavaScript object. Internally, a Map has two data structures: keys: an OrderedSet of all of the existing keys values: a JavaScript Object indexed by the Ember.guidFor(key) When a key/value pair is added for the first time, we add the key to the keys OrderedSet, and create or replace an entry in

DS.SnapshotRecordArray#adapterOptions

adapterOptions{Object} Defined in addon/-private/system/snapshot-record-array.js:46 A hash of adapter options

AriaRoleSupport#sendAction()

sendAction (action, params) public Defined in packages/ember-views/lib/mixins/action_support.js:23 Calls an action passed to a component. For example a component for playing or pausing music may translate click events into action notifications of "play" or "stop" depending on some internal state of the component: // app/components/play-button.js export default Ember.Component.extend({ click() { if (this.get('isPlaying')) { this.sendAction('play'); } else { this.sendAct