Route#didTransition event

didTransitionpublic Defined in packages/ember-routing/lib/system/route.js:588 Available since 1.2.0 The didTransition action is fired after a transition has successfully been completed. This occurs after the normal model hooks (beforeModel, model, afterModel, setupController) have resolved. The didTransition action has no arguments, however, it can be useful for tracking page views or resetting state on the controller. App.LoginRoute = Ember.Route.extend({ actions: { didTransition: fu

DS.FilteredRecordArray

DS.FilteredRecordArray Class Extends: DS.RecordArray Defined in: addon/-private/system/record-arrays/filtered-record-array.js:10 Module: ember-data Represents a list of records whose membership is determined by the store. As records are created, loaded, or modified, the store evaluates them to determine if they should be part of the record array.

Conditionals

Conditionals Statements like if and unless are implemented as built-in helpers. Helpers can be invoked three ways, each of which is illustrated below with conditionals. The first style of invocation is inline invocation. This looks similar to displaying a property, but helpers accept arguments. For example: <div> {{if isFast "zoooom" "putt-putt-putt"}} </div> {{if}} in this case returns "zoooom" when isFast is true and "putt-putt-putt" when isFast is false. Helpers invoked as i

Route#_updatingQPChanged()

_updatingQPChangedprivate Defined in packages/ember-routing/lib/system/route.js:336

Route#controllerFor()

controllerFor (name) Ember.Controllerpublic Defined in packages/ember-routing/lib/system/route.js:1672 Returns the controller for a particular route or name. The controller instance must already have been created, either through entering the associated route or using generateController. App.PostRoute = Ember.Route.extend({ setupController: function(controller, post) { this._super(controller, post); this.controllerFor('posts').set('currentPost', post); } }); Parameters: name

DataAdapter#detect()

detect (klass) private Defined in packages/ember-extension-support/lib/data_adapter.js:249 Detect whether a class is a model. Test that against the model class of your persistence library. Parameters: klass Class The class to test. Returns: boolean Whether the class is a model class or not.

DS.Snapshot#changedAttributes()

changedAttributesObject Defined in addon/-private/system/snapshot.js:135 Returns all changed attributes and their old and new values. Example // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); postModel.set('title', 'Ember.js rocks!'); postSnapshot.changedAttributes(); // => { title: ['Ember.js rocks', 'Ember.js rocks!'] } Returns: Object All changed attributes of the current snapshot

Ember.computed.setDiff()

setDiff (setAProperty, setBProperty) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:493 A computed property which returns a new array with all the properties from the first dependent array that are not in the second dependent array. Example let Hamster = Ember.Object.extend({ likes: ['banana', 'grape', 'kale'], wants: Ember.computed.setDiff('likes', 'fruits') }); let hamster = Hamster.create({ fruits: [ 'grape', 'kale',

Ember.computed.reads()

reads (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:568 This is a more semantically meaningful alias of computed.oneWay, whose name is somewhat ambiguous as to which direction the data flows. Parameters: dependentKey String Returns: Ember.ComputedProperty computed property which creates a one way computed property to the original value for property.

Configuring Your App

Configuring Your App Ember CLI ships with support for managing your application's environment. Ember CLI will setup a default environment config file at config/environment. Here, you can define an ENV object for each environment, which are currently limited to three: development, test, and production. The ENV object contains three important keys: EmberENV can be used to define Ember feature flags (see the Feature Flags guide). APP can be used to pass flags/options to your application instan