TextSupport#onEvent

onEventStringprivate Defined in packages/ember-views/lib/mixins/text_support.js:157 The event that should send the action. Options are: enter: the user pressed enter keyPress: the user pressed a key Default: enter

Ember.aliasMethod()

aliasMethod (methodName) public Defined in packages/ember-metal/lib/mixin.js:673 Makes a method available via an additional name. App.Person = Ember.Object.extend({ name: function() { return 'Tomhuda Katzdale'; }, moniker: Ember.aliasMethod('name') }); let goodGuy = App.Person.create(); goodGuy.name(); // 'Tomhuda Katzdale' goodGuy.moniker(); // 'Tomhuda Katzdale' Parameters: methodName String name of the method to alias

DS.RecordArray#save()

saveDS.PromiseArray Defined in addon/-private/system/record-arrays/record-array.js:170 Saves all of the records in the RecordArray. Example var messages = store.peekAll('message'); messages.forEach(function(message) { message.set('hasBeenSeen', true); }); messages.save(); Returns: DS.PromiseArray promise

Templates.helpers.render()

render (name, context, options) Stringpublic Defined in packages/ember-htmlbars/lib/keywords/render.js:14 Calling {{render}} from within a template will insert another template that matches the provided name. The inserted template will access its properties on its own controller (rather than the controller of the parent template). If a view class with the same name exists, the view class also will be used. Note: A given controller may only be used once in your app in this manner. A singleto

Ember.computed.alias()

alias (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:503 Creates a new property that is an alias for another property on an object. Calls to get or set this property behave as though they were called on the original property. let Person = Ember.Object.extend({ name: 'Alex Matchneer', nomen: Ember.computed.alias('name') }); let alex = Person.create(); alex.get('nomen'); // 'Alex Matchneer' alex.get('name'); // 'Alex Matchn

Templates.helpers.each()

eachpublic Defined in packages/ember-htmlbars/lib/helpers/each.js:9 The {{#each}} helper loops over elements in a collection. It is an extension of the base Handlebars {{#each}} helper. The default behavior of {{#each}} is to yield its inner block once for every item in an array passing the item as the first block parameter. var developers = [{ name: 'Yehuda' },{ name: 'Tom' }, { name: 'Paul' }]; {{#each developers key="name" as |person|}} {{person.name}} {{! `this` is whatever it was

Templates.helpers.get()

getpublic Defined in packages/ember-htmlbars/lib/keywords/get.js:105 Available since 2.1.0 Dynamically look up a property on an object. The second argument to {{get}} should have a string value, although it can be bound. For example, these two usages are equivilent: {{person.height}} {{get person "height"}} If there were several facts about a person, the {{get}} helper can dynamically pick one: {{get person factName}} For a more complex example, this template would allow the user to switc

Ember.tryInvoke()

tryInvoke (obj, methodName, args) *public Defined in packages/ember-metal/lib/utils.js:338 Checks to see if the methodName exists on the obj, and if it does, invokes it with the arguments passed. let d = new Date('03/15/2013'); Ember.tryInvoke(d, 'getTime'); // 1363320000000 Ember.tryInvoke(d, 'setFullYear', [2014]); // 1394856000000 Ember.tryInvoke(d, 'noSuchMethod', [2014]); // undefined Parameters: obj Object The object to check for the method methodName String T

NoneLocation#handleURL()

handleURL (callback) private Defined in packages/ember-routing/lib/location/none_location.js:85 Sets the path and calls the updateURL callback. Parameters: callback Function

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