Router#didTransition()

didTransitionpublic Defined in packages/ember-routing/lib/system/router.js:227 Available since 1.2.0 Handles updating the paths and notifying any listeners of the URL change. Triggers the router level didTransition hook. For example, to notify google analytics when the route changes, you could use this hook. (Note: requires also including GA scripts, etc.) let Router = Ember.Router.extend({ location: config.locationType, didTransition: function() { this._super(...arguments); r

AutoLocation#global

globalprivate Defined in packages/ember-routing/lib/location/auto_location.js:64 Available since 1.11 Default: window

Setting Up Tests

Setting Up Tests To demonstrate the basic setup and processing of an Ember application, this section will walk through building an Ember application for a property rental site called Super Rentals. It will start with a homepage, an about page and a contact page. Here's a look at the desired application before we get started. Let's think through what we want to do on the home page of our Super Rentals application. We want our application to: List available rentals. Link to information about t

Inspecting Routes

Inspecting Routes The Routes tab displays a list of your application's routes. For the following code: this.route('posts', function() { this.route('new'); }); The Inspector displays these routes: As you can see, the Inspector shows the routes you defined as well as the routes automatically generated by Ember. Viewing the Current Route The Inspector highlights the currently active routes. However, if your app has grown too large for this to be useful, you can use the Current Route Only che

Map.create()

createprivatestatic Defined in packages/ember-metal/lib/map.js:253

Map#clear()

clearprivate Defined in packages/ember-metal/lib/map.js:392

InstrumentationSupport#instrumentDisplay

instrumentDisplayStringpublic Defined in packages/ember-views/lib/mixins/instrumentation_support.js:14 Used to identify this view during debugging

DefaultResolver#resolveOther()

resolveOther (parsedName) protected Defined in packages/ember-application/lib/system/resolver.js:379 Look up the specified object (from parsedName) on the appropriate namespace (usually on the Application) Parameters: parsedName Object a parseName object with the parsed fullName lookup string

Observable#toggleProperty()

toggleProperty (keyName) Booleanpublic Defined in packages/ember-runtime/lib/mixins/observable.js:473 Set the value of a boolean property to the opposite of its current value. starship.toggleProperty('warpDriveEngaged'); Parameters: keyName String The name of the property to toggle Returns: Boolean The new property value

Ember.onerror event

onerror (error) public Defined in packages/ember-metal/lib/index.js:380 A function may be assigned to Ember.onerror to be called when Ember internals encounter an error. This is useful for specialized error handling and reporting code. Ember.onerror = function(error) { Em.$.ajax('/report-error', 'POST', { stack: error.stack, otherInformation: 'whatever app state you want to provide' }); }; Internally, Ember.onerror is used as Backburner's error handler. Parameters: error Exc