RSVP.Promise

RSVP.Promise Class Defined in: bower_components/rsvp/lib/rsvp/promise.js:34 Module: ember Promise objects represent the eventual result of an asynchronous operation. The primary way of interacting with a promise is through its then method, which registers callbacks to receive either a promise’s eventual value or the reason why the promise cannot be fulfilled. Terminology promise is an object or function with a then method whose behavior conforms to this specification. thenable is an obje

Registry#factoryTypeInjection()

factoryTypeInjection (type, property, fullName) private Defined in packages/container/lib/registry.js:555 Used only via factoryInjection. Provides a specialized form of injection, specifically enabling all factory of one type to be injected with a reference to another object. For example, provided each factory of type model needed a store. one would do the following: let registry = new Registry(); registry.register('store:main', SomeStore); registry.factoryTypeInjection('model', 'store',

Ember.hasListeners()

hasListeners (obj, eventName) private Defined in packages/ember-metal/lib/events.js:244 Parameters: obj eventName String

The Model Hook

The Model Hook Now, let's add a list of available rentals to the index template. We know that rentals will not be static, since eventually users will be able to add, update, and delete them. For this reason, we'll need a rentals model to save information about the rentals. To keep things simple at first, we'll use a hard-coded array of JavaScript objects. Later, we'll switch to using Ember Data, a library for robustly managing data in our app. Here's what our homepage will look like when we'r

Observable#notifyPropertyChange()

notifyPropertyChange (keyName) Ember.Observablepublic Defined in packages/ember-runtime/lib/mixins/observable.js:318 Convenience method to call propertyWillChange and propertyDidChange in succession. Parameters: keyName String The property key to be notified about. Returns: Ember.Observable

EngineInstance#engine

engineEmber.Engineprivate Defined in packages/ember-application/lib/system/engine-instance.js:31 The base Engine for which this is an instance.

Templates.helpers.loc()

loc (str) public Defined in packages/ember-htmlbars/lib/helpers/loc.js:9 Calls Ember.String.loc with the provided string. This is a convenient way to localize text within a template. For example: Ember.STRINGS = { '_welcome_': 'Bonjour' }; <div class='message'> {{loc '_welcome_'}} </div> <div class='message'> Bonjour </div> See Ember.String.loc for how to set up localized string references. Parameters: str String The string to format.

ObjectProxy

Ember.ObjectProxy Class PUBLIC Extends: Ember._ProxyMixin Defined in: packages/ember-runtime/lib/system/object_proxy.js:4 Module: ember Ember.ObjectProxy forwards all properties not defined by the proxy itself to a proxied content object. object = Ember.Object.create({ name: 'Foo' }); proxy = Ember.ObjectProxy.create({ content: object }); // Access and change existing properties proxy.get('name') // 'Foo' proxy.set('name', 'Bar'); object.get('name') // 'Bar' // Crea

Ember.FEATURES

Ember.FEATURES Namespace PUBLIC Defined in: packages/ember-metal/lib/features.js:5 Module: ember The hash of enabled Canary features. Add to this, any canary features before creating your application. Alternatively (and recommended), you can also define EmberENV.FEATURES if you need to enable features flagged at runtime.

Transition#method()

method (method) Transitionpublic Defined in bower_components/router.js/lib/router/transition.js:223 Sets the URL-changing method to be employed at the end of a successful transition. By default, a new Transition will just use updateURL, but passing 'replace' to this method will cause the URL to update using 'replaceWith' instead. Omitting a parameter will disable the URL change, allowing for transitions that don't update the URL at completion (this is also used for handleURL, since the URL