Ember.createInjectionHelper()

createInjectionHelper (type, validator) private Defined in packages/ember-runtime/lib/inject.js:19 Available since 1.10.0 This method allows other Ember modules to register injection helpers for a given container type. Helpers are exported to the inject namespace as the container type itself. Parameters: type String The container type the helper will inject validator Function A validation callback that is executed at mixin-time

Ember.copy()

copy (obj, deep) Objectpublic Defined in packages/ember-runtime/lib/copy.js:66 Creates a shallow copy of the passed object. A deep copy of the object is returned if the optional deep argument is true. If the passed object implements the Ember.Copyable interface, then this function will delegate to the object's copy() method and return the result. See Ember.Copyable for further details. For primitive values (which are immutable in JavaScript), the passed object is simply returned. Paramete

Ember.controllerFor()

controllerForprivate Defined in packages/ember-routing/lib/system/controller_for.js:6 Finds a controller instance.

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

uniq (propertyKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:330 A computed property which returns a new array with all the unique elements from one or more dependent arrays. Example let Hamster = Ember.Object.extend({ uniqueFruits: Ember.computed.uniq('fruits') }); let hamster = Hamster.create({ fruits: [ 'banana', 'grape', 'kale', 'banana' ] }); hamster.get('uniqueFruits'); // ['banana', 'grape', 'kale']

Ember.computed.union()

union (propertyKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:426 Alias for Ember.computed.uniq. Parameters: propertyKey String Returns: Ember.ComputedProperty computes a new array with all the unique elements from the dependent array

Ember.computed.sum()

sum (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:63 Available since 1.4.0 A computed property that returns the sum of the values in the dependent array. Parameters: dependentKey String Returns: Ember.ComputedProperty computes the sum of all values in the dependentKey's array

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

Ember.computed.setDiff()

setDiff (setAProperty, setBProperty) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:493 A computed property which returns a new array with all the properties from the first dependent array that are not in the second dependent array. Example let Hamster = Ember.Object.extend({ likes: ['banana', 'grape', 'kale'], wants: Ember.computed.setDiff('likes', 'fruits') }); let hamster = Hamster.create({ fruits: [ 'grape', 'kale',

Ember.computed.reads()

reads (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:568 This is a more semantically meaningful alias of computed.oneWay, whose name is somewhat ambiguous as to which direction the data flows. Parameters: dependentKey String Returns: Ember.ComputedProperty computed property which creates a one way computed property to the original value for property.