Ember.computed.sort()

sort (itemsKey, sortDefinition) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:584 A computed property which returns a new array with all the properties from the first dependent array sorted based on a property or sort function. The callback method you provide should have the following signature: function(itemA, itemB); itemA the first item to compare. itemB the second item to compare. This function should return negative number (e.g

PromiseProxyMixin#isRejected

isRejectedpublic Defined in packages/ember-runtime/lib/mixins/promise_proxy.js:121 Will become true if the proxied promise is rejected. Default: false

DefaultResolver

Ember.DefaultResolver Class PUBLIC Extends: Ember.Object Defined in: packages/ember-application/lib/system/resolver.js:39 Module: ember-application The DefaultResolver defines the default lookup rules to resolve container lookups before consulting the container for registered items: templates are looked up on Ember.TEMPLATES other names are looked up on the application after converting the name. For example, controller:post looks up App.PostController by default. there are some nuances (s

Ember.computed.not()

not (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:152 A computed property that returns the inverse boolean value of the original value for the dependent property. Example let User = Ember.Object.extend({ isAnonymous: Ember.computed.not('loggedIn') }); let user = User.create({loggedIn: false}); user.get('isAnonymous'); // true user.set('loggedIn', true); user.get('isAnonymous'); // false Parameters: dependentKey String

DS.Adapter#shouldReloadAll()

shouldReloadAll (store, snapshotRecordArray) Boolean Defined in addon/adapter.js:527 Available since 1.13.0 This method is used by the store to determine if the store should reload all records from the adapter when records are requested by store.findAll. If this method returns true, the store will re-fetch all records from the adapter. If this method returns false, the store will resolve immediately using the cached records. For example, if you are building an events ticketing system, in wh

DS#normalizeModelName()

normalizeModelName (modelName) Stringpublic Defined in addon/-private/system/normalize-model-name.js:6 This method normalizes a modelName into the format Ember Data uses internally. Parameters: modelName String Returns: String normalizedModelName

Route#serializeQueryParamKey()

serializeQueryParamKey (controllerPropertyName) private Defined in packages/ember-routing/lib/system/route.js:379 Serializes the query parameter key Parameters: controllerPropertyName String

DS.Model#isValid

isValid{Boolean} Defined in addon/-private/system/model/model.js:211 If this property is true the record is in the valid state. A record will be in the valid state when the adapter did not report any server-side validation failures.

Ember.computed.uniqBy()

uniqBy (dependentKey, propertyKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:379 A computed property which returns a new array with all the unique elements from an array, with uniqueness determined by specific key. Example let Hamster = Ember.Object.extend({ uniqueFruits: Ember.computed.uniqBy('fruits', 'id') }); let hamster = Hamster.create({ fruits: [ { id: 1, 'banana' }, { id: 2, 'grape' }, { id: 3, 'peach' },

Ember.computed.intersect()

intersect (propertyKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:438 A computed property which returns a new array with all the duplicated elements from two or more dependent arrays. Example let obj = Ember.Object.extend({ friendsInCommon: Ember.computed.intersect('adaFriends', 'charlesFriends') }).create({ adaFriends: ['Charles Babbage', 'John Hobhouse', 'William King', 'Mary Somerville'], charlesFriends: ['William King', '