ContainerProxyMixin#ownerInjection()

ownerInjectionObjectpublic Defined in packages/ember-runtime/lib/mixins/container_proxy.js:26 Returns an object that can be used to provide an owner to a manually created instance. Example: let owner = Ember.getOwner(this); User.create( owner.ownerInjection(), { username: 'rwjblue' } ) Returns: Object

Registry#knownForType()

knownForType (type) private Defined in packages/container/lib/registry.js:663 Parameters: type String the type to iterate over

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

MapWithDefault

Ember.MapWithDefault Class PRIVATE Extends: Ember.Map Defined in: packages/ember-metal/lib/map.js:412 Module: ember-metal

Binding#connect()

connect (obj) Ember.Bindingpublic Defined in packages/ember-metal/lib/binding.js:135 Attempts to connect this binding instance so that it can receive and relay changes. This method will raise an exception if you have not set the from/to properties yet. Parameters: obj Object The root object for this binding. Returns: Ember.Binding `this`

Route

Ember.Route Class PUBLIC Extends: Ember.Object Uses: Ember.ActionHandler Uses: Ember.Evented Defined in: packages/ember-routing/lib/system/route.js:75 Module: ember-routing The Ember.Route class is used to define individual routes. Refer to the routing guide for documentation.

ArrayProxy#_contentWillChange()

_contentWillChangeprivate Defined in packages/ember-runtime/lib/system/array_proxy.js:133 Invoked when the content property is about to change. Notifies observers that the entire array content will change.

DS.Errors#has()

has (attribute) Boolean Defined in addon/-private/system/model/errors.js:405 Checks if there is error messages for the given attribute. app/routes/user/edit.js import Ember from 'ember'; export default Ember.Route.extend({ actions: { save: function(user) { if (user.get('errors').has('email')) { return alert('Please update your email before attempting to save.'); } user.save(); } } }); Parameters: attribute String Returns: Boolean true i

Route#setup()

setupprivate Defined in packages/ember-routing/lib/system/route.js:1177 This hook is the entry point for router.js

Route#deactivate event

deactivatepublic Defined in packages/ember-routing/lib/system/route.js:712 Available since 1.9.0 This event is triggered when the router completely exits this route. It is not executed when the model for the route changes. App.IndexRoute = Ember.Route.extend({ trackPageLeaveAnalytics: function(){ trackPageLeaveAnalytics(); }.on('deactivate') });