Engine

Ember.Engine Class PUBLIC Extends: Ember.Namespace Uses: RegistryProxy Defined in: packages/ember-application/lib/system/engine.js:37 Module: ember-application The Engine class contains core functionality for both applications and engines. Each engine manages a registry that's used for dependency injection and exposed through RegistryProxy. Engines also manage initializers and instance initializers. Engines can spawn EngineInstance instances via buildInstance().

Enumerable#compact()

compactArraypublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:774 Returns a copy of the array with all null and undefined elements removed. let arr = ['a', null, 'c', undefined]; arr.compact(); // ['a', 'c'] Returns: Array the array without null and undefined elements.

Binding#to()

to (path) Ember.Bindingpublic Defined in packages/ember-metal/lib/binding.js:87 This will set the to property path to the specified value. It will not attempt to resolve this property path to an actual object until you connect the binding. The binding will search for the property path starting at the root object you pass when you connect() the binding. It follows the same rules as get() - see that method for more information. Parameters: path String|Tuple A property path or tuple. R

ViewTargetActionSupport#handleEvent()

handleEvent (eventName, evt) private Defined in packages/ember-views/lib/mixins/view_support.js:495 Handle events from Ember.EventDispatcher Parameters: eventName String evt Event

Component#didUpdate()

didUpdatepublic Defined in packages/ember-htmlbars/lib/component.js:451 Available since 1.13.0 Called when the component has updated and rerendered itself. Called only during a rerender, not during an initial render.

RegistryProxyMixin#registeredOption()

registeredOption (fullName, optionName) Objectpublic Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:131 Return a specific registered option for a particular factory. Parameters: fullName String optionName String Returns: Object options

Enumerable#reduce()

reduce (callback, initialValue, reducerProperty) Objectpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:685 This will combine the values of the enumerator into a single value. It is a useful way to collect a summary value from an enumeration. This corresponds to the reduce() method defined in JavaScript 1.8. The callback method you provide should have the following signature (all parameters are optional): function(previousValue, item, index, enumerable); previousValue is

Bindings

Bindings Unlike most other frameworks that include some sort of binding implementation, bindings in Ember.js can be used with any object. That said, bindings are most often used within the Ember framework itself, and for most problems Ember app developers face, computed properties are the appropriate solution. The easiest way to create a two-way binding is to use a computed.alias(), that specifies the path to another object. husband = Ember.Object.create({ pets: 0 }); Wife = Ember.Object.e

MutableArray#pushObjects()

pushObjects (objects) Ember.Arraypublic Defined in packages/ember-runtime/lib/mixins/mutable_array.js:185 Add the objects in the passed numerable to the end of the array. Defers notifying observers of the change until all objects are added. let colors = ['red']; colors.pushObjects(['yellow', 'orange']); // ['red', 'yellow', 'orange'] Parameters: objects Ember.Enumerable the objects to add Returns: Ember.Array receiver

DS.JSONSerializer#modelNameFromPayloadType()

modelNameFromPayloadType (type) Stringpublic Defined in addon/serializers/json.js:1520 Parameters: type String Returns: String the model's modelName