Ember.computed

Ember.computed Namespace PUBLIC Defined in: packages/ember-metal/lib/computed.js:452 Module: ember-metal This helper returns a new property descriptor that wraps the passed computed property function. You can use this helper to define properties with mixins or via Ember.defineProperty(). If you pass a function as an argument, it will be used as a getter. A computed property defined in this way might look like this: let Person = Ember.Object.extend({ init() { this._super(...arguments)

RSVP.EventTarget#off()

off (eventName, callback) private Defined in bower_components/rsvp/lib/rsvp/events.js:109 You can use off to stop firing a particular callback for an event: function doStuff() { // do stuff! } object.on('stuff', doStuff); object.trigger('stuff'); // doStuff will be called // Unregister ONLY the doStuff callback object.off('stuff', doStuff); object.trigger('stuff'); // doStuff will NOT be called If you don't pass a callback argument to off, ALL callbacks for the event will not be executed

DS.Store#_generateId()

_generateId (modelName, properties) Stringprivate Defined in addon/-private/system/store.js:361 If possible, this method asks the adapter to generate an ID for a newly created record. Parameters: modelName String properties Object from the new record Returns: String if the adapter can generate one, an ID

TextSupport.isView

isViewBooleanprivatestatic Defined in packages/ember-views/lib/mixins/template_support.js:9 Default: true

Route#enter()

enterprivate Defined in packages/ember-routing/lib/system/route.js:493

DS.RecordArray#store

storeDS.Storeprivate Defined in addon/-private/system/record-arrays/record-array.js:77 The store that created this record array.

Application

Ember.Application Class PUBLIC Extends: Ember.Engine Uses: RegistryProxyMixin Defined in: packages/ember-application/lib/system/application.js:45 Module: ember-application An instance of Ember.Application is the starting point for every Ember application. It helps to instantiate, initialize and coordinate the many objects that make up your app. Each Ember app has one and only one Ember.Application object. In fact, the very first thing you should do in your application is create the instanc

DS.ManyArray#loadedRecord()

loadedRecordprivate Defined in addon/-private/system/many-array.js:224

Testing Controllers

Testing Controllers Unit testing methods and computed properties follows previous patterns shown in Unit Testing Basics because Ember.Controller extends Ember.Object. Unit testing controllers is very simple using the unit test helper which is part of the ember-qunit framework. Testing Controller Actions Here we have a controller PostsController with two properties, a method that sets one of those properties, and an action named setProps. You can follow along by generating your own controller

Customizing a Component's Element

Customizing a Component's Element By default, each component is backed by a <div> element. If you were to look at a rendered component in your developer tools, you would see a DOM representation that looked something like: <div id="ember180" class="ember-view"> <h1>My Component</h1> </div> You can customize what type of element Ember generates for your component, including its attributes and class names, by creating a subclass of Ember.Component in your JavaSc