Container#ownerInjection()

ownerInjectionObjectprivate Defined in packages/container/lib/container.js:168 Returns an object that can be used to provide an owner to a manually created instance. Returns: Object

DefaultResolver#resolveTemplate()

resolveTemplate (parsedName) protected Defined in packages/ember-application/lib/system/resolver.js:301 Look up the template in Ember.TEMPLATES Parameters: parsedName Object a parseName object with the parsed fullName lookup string

Application#domReady()

domReadyprivate Defined in packages/ember-application/lib/system/application.js:446 This is the autoboot flow: Boot the app by calling this.boot() Create an instance (or use the __deprecatedInstance__ in globals mode) Boot the instance by calling instance.boot() Invoke the App.ready() callback Kick-off routing on the instance Ideally, this is all we would need to do: _autoBoot() { this.boot().then(() => { let instance = (this._globalsMode) ? this.__deprecatedInstance__ : this.bui

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

Array#objectsAt()

objectsAt (indexes) Arraypublic Defined in packages/ember-runtime/lib/mixins/array.js:257 This returns the objects at the specified indexes, using objectAt. let arr = ['a', 'b', 'c', 'd']; arr.objectsAt([0, 1, 2]); // ['a', 'b', 'c'] arr.objectsAt([2, 3, 4]); // ['c', 'd', undefined] Parameters: indexes Array An array of indexes of items to return. Returns: Array

TextField

Ember.TextField Class PUBLIC Extends: Ember.Component Uses: Ember.TextSupport Defined in: packages/ember-htmlbars/lib/components/text_field.js:37 Module: ember-views The internal class used to create text inputs when the {{input}} helper is used with type of text. See Ember.Templates.helpers.input for usage details. Layout and LayoutName properties Because HTML input elements are self closing layout and layoutName properties will not be applied. See Ember.View's layout section for more inf

DS.Adapter#shouldBackgroundReloadRecord()

shouldBackgroundReloadRecord (store, snapshot) Boolean Defined in addon/adapter.js:580 Available since 1.13.0 This method is used by the store to determine if the store should reload a record after the store.findRecord method resolves a cached record. This method is only checked by the store when the store is returning a cached record. If this method returns true the store will re-fetch a record from the adapter. For example, if you do not want to fetch complex data over a mobile connection

Evented

Ember.Evented Class PUBLIC Defined in: packages/ember-runtime/lib/mixins/evented.js:14 Module: ember-runtime This mixin allows for Ember objects to subscribe to and emit events. App.Person = Ember.Object.extend(Ember.Evented, { greet: function() { // ... this.trigger('greet'); } }); var person = App.Person.create(); person.on('greet', function() { console.log('Our person has greeted'); }); person.greet(); // outputs: 'Our person has greeted' You can also chain multiple e

DS.Errors#remove()

remove (attribute) deprecated Defined in addon/-private/system/model/errors.js:280 Removes all error messages from the given attribute and sends becameValid event to the record if there no more errors left. Example: app/models/user.js import DS from 'ember-data'; export default DS.Model.extend({ email: DS.attr('string'), twoFactorAuth: DS.attr('boolean'), phone: DS.attr('string') }); app/routes/user/edit.js import Ember from 'ember'; export default Ember.Route.extend({ actions: {

Ember.getWithDefault()

getWithDefault (obj, keyName, defaultValue) Objectpublic Defined in packages/ember-metal/lib/property_get.js:106 Retrieves the value of a property from an Object, or a default value in the case that the property returns undefined. Ember.getWithDefault(person, 'lastName', 'Doe'); Parameters: obj Object The object to retrieve from. keyName String The name of the property to retrieve defaultValue Object The value to return if the property value is undefined Returns: Object