Map#copy()

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

OrderedSet#forEach()

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

AutoLocation#userAgent

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

AutoLocation#rootURL

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

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

Testing Components

Testing Components Components can be tested with integration tests using the moduleForComponent helper. Let's assume we have a component with a style property that is updated whenever the value of the name property changes. The style attribute of the component is bound to its style property. You can follow along by generating your own component with ember generate component pretty-color. app/components/pretty-color.js import Ember from 'ember'; export default Ember.Component.extend({ att

DS.SnapshotRecordArray#meta

meta{Object} Defined in addon/-private/system/snapshot-record-array.js:40 Meta object

Testing Routes

Testing Routes Unit testing methods and computed properties follows previous patterns shown in Unit Testing Basics because Ember.Route extends Ember.Object. Testing routes can be done both via acceptance or unit tests. Acceptance tests will likely provide better coverage for routes because routes are typically used to perform transitions and load data, both of which are tested more easily in full context rather than isolation. That being said, sometimes it is important to unit test your route

Ember.VERSION

VERSIONStringpublic Defined in packages/ember-metal/lib/index.js:308 The semantic version

TextField#type

typeStringpublic Defined in packages/ember-htmlbars/lib/components/text_field.js:100 The type attribute of the input element. Default: "text"