Adding Nested Routes

Adding Nested Routes Up to this point, we've generated four top level routes. An about route, that gives information on our application. A contact route, with information on how to contact the company. A rentals route, where we will allow users to browse rental properties. The index route, which we've set up to redirect to the rentals route. Our rentals route is going to serve multiple functions. From our acceptance tests, we've shown that we want our users to be able to browse and search r

Triggering Changes with Actions

Triggering Changes with Actions You can think of a component as a black box of UI functionality. So far, you've learned how parent components can pass attributes in to a child component, and how that component can use those attributes from both JavaScript and its template. But what about the opposite direction? How does data flow back out of the component to the parent? In Ember, components use actions to communicate events and changes. Let's look at a simple example of how a component can us

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

TextField#value

valueStringpublic Defined in packages/ember-htmlbars/lib/components/text_field.js:89 The value attribute of the input element. As the user inputs text, this property is updated live. Default: ""

Engine#_initializersRan

_initializersRanprivate Defined in packages/ember-application/lib/system/engine.js:66 A private flag indicating whether an engine's initializers have run yet.

Enumerable#[]

[]Arrayprivate Defined in packages/ember-runtime/lib/mixins/enumerable.js:848 This property will trigger anytime the enumerable's content changes. You can observe this property to be notified of changes to the enumerable's content. For plain enumerables, this property is read only. Array overrides this method. Returns: this

DS.ManyArray#promise

promiseEmber.RSVP.Promiseprivate Defined in addon/-private/system/many-array.js:206 Used for async hasMany arrays to keep track of when they will resolve.

Ember.K()

KObjectpublic Defined in packages/ember-metal/lib/index.js:407 An empty function useful for some operations. Always returns this. Returns: Object

Registry#_typeOptions

_typeOptionsInheritingDictprivate Defined in packages/container/lib/registry.js:131

OrderedSet.create()

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