PromiseProxyMixin#catch()

catch (callback) RSVP.Promisepublic Defined in packages/ember-runtime/lib/mixins/promise_proxy.js:177 Available since 1.3.0 An alias to the proxied promise's catch. See RSVP.Promise.catch. Parameters: callback Function Returns: RSVP.Promise

PromiseProxyMixin#isFulfilled

isFulfilledpublic Defined in packages/ember-runtime/lib/mixins/promise_proxy.js:130 Will become true if the proxied promise is fulfilled. Default: false

Preventing and Retrying Transitions

Preventing and Retrying Transitions During a route transition, the Ember Router passes a transition object to the various hooks on the routes involved in the transition. Any hook that has access to this transition object has the ability to immediately abort the transition by calling transition.abort(), and if the transition object is stored, it can be re-attempted at a later time by calling transition.retry(). Preventing Transitions via willTransition When a transition is attempted, whether

PromiseProxyMixin

Ember.PromiseProxyMixin Class PUBLIC Defined in: packages/ember-runtime/lib/mixins/promise_proxy.js:34 Module: ember-runtime A low level mixin making ObjectProxy promise-aware. let ObjectPromiseProxy = Ember.ObjectProxy.extend(Ember.PromiseProxyMixin); let proxy = ObjectPromiseProxy.create({ promise: Ember.RSVP.cast($.getJSON('/some/remote/data.json')) }); proxy.then(function(json){ // the json }, function(reason) { // the reason why you have no json }); the proxy has bindable a

Passing Properties to a Component

Passing Properties to a Component Components are isolated from their surroundings, so any data that the component needs has to be passed in. For example, imagine you have a blog-post component that is used to display a blog post: app/templates/components/blog-post.hbs <article class="blog-post"> <h1>{{title}}</h1> <p>{{body}}</p> </article> Now imagine we have the following template and route: app/routes/index.js import Ember from 'ember'; export defa

OrderedSet.create()

createEmber.OrderedSetprivatestatic Defined in packages/ember-metal/lib/map.js:75 Returns: Ember.OrderedSet

OrderedSet#has()

has (obj) Booleanprivate Defined in packages/ember-metal/lib/map.js:154 Parameters: obj Returns: Boolean

OrderedSet#forEach()

forEach (fn, self) private Defined in packages/ember-metal/lib/map.js:169 Parameters: fn Function self

OrderedSet#toArray()

toArrayArrayprivate Defined in packages/ember-metal/lib/map.js:195 Returns: Array

OrderedSet#isEmpty()

isEmptyBooleanprivate Defined in packages/ember-metal/lib/map.js:145 Returns: Boolean