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.

HistoryLocation#onUpdateURL()

onUpdateURL (callback) private Defined in packages/ember-routing/lib/location/history_location.js:175 Register a callback to be invoked whenever the browser history changes, including using forward and back buttons. Parameters: callback Function

Transition#catch()

catch (onRejection, label) Promisepublic Defined in bower_components/router.js/lib/router/transition.js:155 Forwards to the internal promise property which you can use in situations where you want to pass around a thennable, but not the Transition itself. Parameters: onRejection Function label String optional string for labeling the promise. Useful for tooling. Returns: Promise

OrderedSet#add()

add (obj, guid) Ember.OrderedSetprivate Defined in packages/ember-metal/lib/map.js:99 Parameters: obj guid (optional, and for internal use) Returns: Ember.OrderedSet

RegistryProxyMixin#inject()

inject (factoryNameOrType, property, injectionName) public Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:203 Define a dependency injection onto a specific factory or all factories of a type. When Ember instantiates a controller, view, or other framework component it can attach a dependency to that component. This is often used to provide services to a set of framework components. An example of providing a session object to all controllers: let App = Ember.Application.create

DS.Adapter#query()

query (store, type, query, recordArray) Promise Defined in addon/adapter.js:154 This method is called when you call query on the store. Example app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ query: function(store, type, query) { return new Ember.RSVP.Promise(function(resolve, reject) { Ember.$.getJSON(`/${type.modelName}`, query).then(function(data) { resolve(data); }, function(jqXHR) { reject(jqXHR); });

Freezable#freeze()

freezeObjectprivate Defined in packages/ember-runtime/lib/mixins/freezable.js:90 Freezes the object. Once this method has been called the object should no longer allow any properties to be edited. Returns: Object receiver

Array#removeArrayObserver()

removeArrayObserver (target, opts) Ember.Arraypublic Defined in packages/ember-runtime/lib/mixins/array.js:490 Removes an array observer from the object if the observer is current registered. Calling this method multiple times with the same object will have no effect. Parameters: target Object The object observing the array. opts Object Optional hash of configuration options including `willChange` and `didChange` option. Returns: Ember.Array receiver

DS.Model.transformedAttributes

transformedAttributes{Ember.Map}static Defined in addon/-private/system/model/attr.js:71 A map whose keys are the attributes of the model (properties described by DS.attr) and whose values are type of transformation applied to each attribute. This map does not include any attributes that do not have an transformation type. Example app/models/person.js import DS from 'ember-data'; export default DS.Model.extend({ firstName: attr(), lastName: attr('string'), birthday: attr('date') });