Transition

Transition Class PRIVATE Defined in: bower_components/router.js/lib/router/transition.js:4 Module: ember A Transition is a thennable (a promise-like object) that represents an attempt to transition to another route. It can be aborted, either explicitly via abort or by attempting another transition while a previous one is still underway. An aborted transition can also be retry()d later.

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.Store#serialize()

serialize (record, options) private Defined in addon/-private/system/store.js:250 Returns a JSON representation of the record using a custom type-specific serializer, if one exists. The available options are: includeId: true if the record's ID should be included in the JSON representation Parameters: record DS.Model the record to serialize options Object an options hash

Test.Adapter#asyncStart()

asyncStartpublic Defined in packages/ember-testing/lib/adapters/adapter.js:19 This callback will be called whenever an async operation is about to start. Override this to call your framework's methods that handle async operations.

DS.JSONSerializer#serializePolymorphicType()

serializePolymorphicType (snapshot, json, relationship) Defined in addon/serializers/json.js:1255 You can use this method to customize how polymorphic objects are serialized. Objects are considered to be polymorphic if { polymorphic: true } is pass as the second argument to the DS.belongsTo function. Example app/serializers/comment.js import DS from 'ember-data'; export default DS.JSONSerializer.extend({ serializePolymorphicType: function(snapshot, json, relationship) { var key = re

Ember.propertyWillChange()

propertyWillChange (obj, keyName) Voidprivate Defined in packages/ember-metal/lib/property_events.js:27 This function is called just before an object property is about to change. It will notify any before observers and prepare caches among other things. Normally you will not need to call this method directly but if for some reason you can't directly watch a property you can invoke this method manually along with Ember.propertyDidChange() which you should call just after the property value c

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

DS.RESTAdapter#_requestToJQueryAjaxHash()

_requestToJQueryAjaxHash (request) Objectprivate Defined in addon/adapters/rest.js:1344 Convert a request object into a hash which can be passed to jQuery.ajax. Parameters: request Object Returns: Object jQuery ajax hash