Actions

Actions Your app will often need a way to let users interact with controls that change application state. For example, imagine that you have a template that shows a blog title, and supports expanding the post to show the body. If you add the {{action}} helper to any HTML DOM element, when a user clicks the element, the named event will be sent to the template's corresponding component or controller. app/templates/components/single-post.hbs <h3><button {{action "toggleBody"}}>{{tit

Application#buildInstance()

buildInstanceEmber.ApplicationInstanceprivate Inherited from Ember.Engine but overwritten in packages/ember-application/lib/system/application.js:367 Create an ApplicationInstance for this application. Returns: Ember.ApplicationInstance the application instance

CoreView#getViewRange()

getViewRange (view) private Defined in packages/ember-views/lib/system/utils.js:19 Parameters: view Ember.View

Ember.$()

$public Defined in packages/ember-views/lib/index.js:23 Alias for jQuery

AutoLocation#rootURL

rootURLprivate Defined in packages/ember-routing/lib/location/auto_location.js:99 Available since 1.5.1 Default: '/'

AutoLocation#userAgent

userAgentprivate Defined in packages/ember-routing/lib/location/auto_location.js:75 Available since 1.5.1 Default: environment.history

Router#reset()

resetprivate Defined in packages/ember-routing/lib/system/router.js:444 Resets the state of the router by clearing the current route handlers and deactivating them.

DS.Errors#clear()

cleardeprecated Defined in addon/-private/system/model/errors.js:345 Removes all error messages and sends becameValid event to the record. Example: app/routes/user/edit.js import Ember from 'ember'; export default Ember.Route.extend({ actions: { retrySave: function(user) { user.get('errors').clear(); user.save(); } } });

OrderedSet#forEach()

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

Map#copy()

copyEmber.Mapprivate Defined in packages/ember-metal/lib/map.js:402 Returns: Ember.Map