Route#beforeModel()

beforeModel (transition) Promisepublic Defined in packages/ember-routing/lib/system/route.js:1257 This hook is the first of the route entry validation hooks called when an attempt is made to transition into a route or one of its children. It is called before model and afterModel, and is appropriate for cases when: 1) A decision can be made to redirect elsewhere without needing to resolve the model first. 2) Any async operations need to occur first before the model is attempted to be resolve

Ember.destroy()

destroy (obj) Voidprivate Defined in packages/ember-metal/lib/watching.js:67 Tears down the meta on an object so that it can be garbage collected. Multiple calls will have no effect. Parameters: obj Object the object to destroy Returns: Void

Inspecting Objects via the Container

Inspecting Objects via the Container Every Ember application has a container that maintains object instances for you. You can inspect these instances using the Container tab. This is useful for objects that don't fall under a dedicated menu, such as services. Click on the Container tab, and you will see a list of instances the container is holding. Click on a type to see the list of all instances of that type maintained by the container. Inspecting Instances Click on a row to inspect a given

DS.JSONAPISerializer#_normalizeDocumentHelper()

_normalizeDocumentHelper (documentHash) Objectprivate Defined in addon/serializers/json-api.js:103 Parameters: documentHash Object Returns: Object

Ember.computed.mapBy()

mapBy (dependentKey, propertyKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:208 Returns an array mapped to the specified key. let Person = Ember.Object.extend({ childAges: Ember.computed.mapBy('children', 'age') }); let lordByron = Person.create({ children: [] }); lordByron.get('childAges'); // [] lordByron.get('children').pushObject({ name: 'Augusta Ada Byron', age: 7 }); lordByron.get('childAges'); // [7] lordByron.get('child

DS.Model.eachAttribute()

eachAttribute (callback, binding) static Defined in addon/-private/system/model/attr.js:121 Iterates through the attributes of the model, calling the passed function on each attribute. The callback method you provide should have the following signature (all parameters are optional): function(name, meta); name the name of the current property in the iteration meta the meta object for the attribute property in the iteration Note that in addition to a callback, you can also pass an optional

Ember.run.cancel()

cancel (timer) Booleanpublic Defined in packages/ember-metal/lib/run_loop.js:493 Cancels a scheduled item. Must be a value returned by run.later(), run.once(), run.scheduleOnce(), run.next(), run.debounce(), or run.throttle(). let runNext = run.next(myContext, function() { // will not be executed }); run.cancel(runNext); let runLater = run.later(myContext, function() { // will not be executed }, 500); run.cancel(runLater); let runScheduleOnce = run.scheduleOnce('afterRender', myCont

RSVP.hash()

hash (object, label) Promisestatic Defined in bower_components/rsvp/lib/rsvp/hash.js:4 RSVP.hash is similar to RSVP.all, but takes an object instead of an array for its promises argument. Returns a promise that is fulfilled when all the given promises have been fulfilled, or rejected if any of them become rejected. The returned promise is fulfilled with a hash that has the same key names as the promises object argument. If any of the values in the object are not promises, they will simply b

MutableEnumerable

Ember.MutableEnumerable Class PUBLIC Uses: Ember.Enumerable Defined in: packages/ember-runtime/lib/mixins/mutable_enumerable.js:10 Module: ember-runtime This mixin defines the API for modifying generic enumerables. These methods can be applied to an object regardless of whether it is ordered or unordered. Note that an Enumerable can change even if it does not implement this mixin. For example, a MappedEnumerable cannot be directly modified but if its underlying enumerable changes, it will

DS.JSONSerializer#normalizeRelationships()

normalizeRelationshipsprivate Defined in addon/serializers/json.js:746