RSVP.all()

all (array, label) static Inherited from RSVP but overwritten in bower_components/rsvp/lib/rsvp/all.js:3 This is a convenient alias for RSVP.Promise.all. Parameters: array Array Array of promises. label String An optional label. This is useful for tooling.

RSVP

RSVP Class Module: ember

RSVP.defer()

defer (label) Objectstatic Defined in bower_components/rsvp/lib/rsvp/defer.js:3 RSVP.defer returns an object similar to jQuery's $.Deferred. RSVP.defer should be used when porting over code reliant on $.Deferred's interface. New code should use the RSVP.Promise constructor instead. The object returned from RSVP.defer is a plain object with three properties: promise - an RSVP.Promise. reject - a function that causes the promise property on this object to become rejected resolve - a function

RoutingService

RoutingService Class PRIVATE Defined in: packages/ember-routing/lib/services/routing.js:13 Module: ember-routing The Routing service is used by LinkComponent, and provides facilities for the component/view layer to interact with the router. While still private, this service can eventually be opened up, and provides the set of API needed for components to control routing without interacting with router internals.

RSVP.allSettled()

allSettled (entries, label) Promisestatic Defined in bower_components/rsvp/lib/rsvp/all-settled.js:19 RSVP.allSettled is similar to RSVP.all, but instead of implementing a fail-fast method, it waits until all the promises have returned and shows you all the results. This is useful if you want to handle multiple promises' failure states together as a set. Returns a promise that is fulfilled when all the given promises have been settled. The return promise is fulfilled with an array of the st

Router#transitionTo()

transitionTo (name, models, options) Transitionpublic Defined in packages/ember-routing/lib/system/router.js:346 Transition the application into another route. The route may be either a single route or route path: See Route.transitionTo for more info. Parameters: name String the name of the route or a URL models ...Object the model(s) or identifier(s) to be used while transitioning to the route. options [Object] optional hash with a queryParams property containing a mapping of

Router#url()

urlStringprivate Defined in packages/ember-routing/lib/system/router.js:158 Represents the current URL. Returns: String The current URL.

Routing

Introduction Imagine we are writing a web app for managing a blog. At any given time, we should be able to answer questions like What post are they looking at? and Are they editing it? In Ember.js, the answer to these questions is determined by the URL. The URL can be set in a few ways: The user loads the app for the first time. The user changes the URL manually, such as by clicking the back button or by editing the address bar. The user clicks a link within the app. Some other event in the a

Router#willTransition()

willTransitionpublic Defined in packages/ember-routing/lib/system/router.js:315 Available since 1.11.0 Handles notifying any listeners of an impending URL change. Triggers the router level willTransition hook.

Routes and Templates

Routes and Templates Ember uses routes to define logical, addressable pages within our application. In Super Rentals we want to arrive at a home page which shows a list of rentals. From there, we should be able to navigate to an about page and a contact page. Let's start by building our "about" page. Remember, when the URL path /about is loaded, the router will map the URL to the route handler of the same name, about.js. The route handler then loads a template. An About Route If we run ember