Evented#trigger()

trigger (name, args) public Defined in packages/ember-runtime/lib/mixins/evented.js:104 Triggers a named event for the object. Any additional arguments will be passed as parameters to the functions that are subscribed to the event. person.on('didEat', function(food) { console.log('person ate some ' + food); }); person.trigger('didEat', 'broccoli'); // outputs: person ate some broccoli Parameters: name String The name of the event args Object... Optional arguments to pass on

EventDispatcher#rootElement

rootElementDOMElementprivate Defined in packages/ember-views/lib/system/event_dispatcher.js:94 The root DOM element to which event listeners should be attached. Event listeners will be attached to the document unless this is overridden. Can be specified as a DOMElement or a selector string. The default body is a string since this may be evaluated before document.body exists in the DOM. Default: 'body'

EventDispatcher#canDispatchToEventManager

canDispatchToEventManagerbooleanprivate Defined in packages/ember-views/lib/system/event_dispatcher.js:110 Available since 1.7.0 It enables events to be dispatched to the view's eventManager. When present, this object takes precedence over handling of events on the view itself. Note that most Ember applications do not use this feature. If your app also does not use it, consider setting this property to false to gain some performance improvement by allowing the EventDispatcher to skip the se

Ember.bind()

bind (obj, to, from) Ember.Bindingpublic Defined in packages/ember-metal/lib/binding.js:486 Global helper method to create a new binding. Just pass the root object along with a to and from path to create and connect the binding. Parameters: obj Object The root object of the transform. to String The path to the 'to' side of the binding. Must be relative to obj. from String The path to the 'from' side of the binding. Must be relative to obj or a global path. Returns: Ember.Bi

Test#currentURL()

currentURLObjectpublic Defined in packages/ember-testing/lib/helpers.js:187 Available since 1.5.0 Returns the current URL. Example: function validateURL() { equal(currentURL(), '/some/path', "correct URL was transitioned into."); } click('#some-link-id').then(validateURL); Returns: Object The currently active URL.

Ember.inject.service()

service (name) Ember.InjectedPropertypublic Defined in packages/ember-runtime/lib/system/service.js:5 Available since 1.10.0 Creates a property that lazily looks up a service in the container. There are no restrictions as to what objects a service can be injected into. Example: App.ApplicationRoute = Ember.Route.extend({ authManager: Ember.inject.service('auth'), model: function() { return this.get('authManager').findCurrentUser(); } }); This example will create an authManager p

Templates.helpers.outlet()

outlet (name) public Defined in packages/ember-htmlbars/lib/keywords/outlet.js:17 The {{outlet}} helper lets you specify where a child route will render in your template. An important use of the {{outlet}} helper is in your application's application.hbs file: {{! app/templates/application.hbs }} <!-- header content goes here, and will always display --> {{my-header}} <div class="my-dynamic-content"> <!-- this content will change based on the current route, which depends o

Observable#addObserver()

addObserver (key, target, method) public Defined in packages/ember-runtime/lib/mixins/observable.js:333 Adds an observer on a property. This is the core method used to register an observer for a property. Once you call this method, any time the key's value is set, your observer will be notified. Note that the observers are triggered any time the value is set, regardless of whether it has actually changed. Your observer should be prepared to handle that. You can also pass an optional context

DS.Snapshot#eachRelationship()

eachRelationship (callback, binding) Defined in addon/-private/system/snapshot.js:330 Iterates through all the relationships of the model, calling the passed function on each relationship. Example snapshot.eachRelationship(function(name, relationship) { // ... }); Parameters: callback Function the callback to execute binding [Object] the value to which the callback's `this` should be bound

DS.BooleanTransform

DS.BooleanTransform Class Extends: DS.Transform Defined in: addon/-private/transforms/boolean.js:7 Module: ember-data The DS.BooleanTransform class is used to serialize and deserialize boolean attributes on Ember Data record objects. This transform is used when boolean is passed as the type parameter to the DS.attr function. Usage app/models/user.js import DS from 'ember-data'; export default DS.Model.extend({ isAdmin: DS.attr('boolean'), name: DS.attr('string'), email: DS.attr('str