Helper

Ember.Helper Class PUBLIC Defined in: packages/ember-htmlbars/lib/helper.js:8 Module: ember-templates Ember Helpers are functions that can compute values, and are used in templates. For example, this code calls a helper named format-currency: <div>{{format-currency cents currency="$"}}</div> Additionally, a helper can be called as a nested helper (sometimes called a subexpression). In this example, the computed value of a helper is passed to a component named show-money: {{sho

Function#observesImmediately()

observesImmediatelydeprecatedprivate Defined in packages/ember-runtime/lib/ext/function.js:129 The observesImmediately extension of Javascript's Function prototype is available when EmberENV.EXTEND_PROTOTYPES or EmberENV.EXTEND_PROTOTYPES.Function is true, which is the default. You can observe property changes simply by adding the observesImmediately call to the end of your method declarations in classes that you write. For example: Ember.Object.extend({ valueObserver: function() { //

Ember.computed.bool()

bool (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:183 A computed property that converts the provided dependent property into a boolean value. let Hamster = Ember.Object.extend({ hasBananas: Ember.computed.bool('numBananas') }); let hamster = Hamster.create(); hamster.get('hasBananas'); // false hamster.set('numBananas', 0); hamster.get('hasBananas'); // false hamster.set('numBananas', 1); hamster.get('hasBananas'); // true

DS.RESTAdapter#findHasMany()

findHasMany (store, snapshot, url) Promise Defined in addon/adapters/rest.js:595 Called by the store in order to fetch a JSON array for the unloaded records in a has-many relationship that were originally specified as a URL (inside of links). For example, if your original payload looks like this: { "post": { "id": 1, "title": "Rails is omakase", "links": { "comments": "/posts/1/comments" } } } This method will be called with the parent record and /posts/1/comments. The find

Observable

Ember.Observable Class PUBLIC Defined in: packages/ember-runtime/lib/mixins/observable.js:30 Module: ember-runtime Overview This mixin provides properties and property observing functionality, core features of the Ember object model. Properties and observers allow one object to observe changes to a property on another object. This is one of the fundamental ways that models, controllers and views communicate with each other in an Ember application. Any object that has this mixin applied can

Map#set()

set (key, value) Ember.Mapprivate Defined in packages/ember-metal/lib/map.js:294 Adds a value to the map. If a value for the given key has already been provided, the new value will replace the old value. Parameters: key * value * Returns: Ember.Map

DefaultResolver#parseName()

parseName (fullName) protected Defined in packages/ember-application/lib/system/resolver.js:197 Convert the string name of the form 'type:name' to a Javascript object with the parsed aspects of the name broken out. Parameters: fullName String the lookup string

DS.RecordArrayManager#updateFilter()

updateFilter (array, modelName, filter) Defined in addon/-private/system/record-array-manager.js:202 This method is invoked if the filterFunction property is changed on a DS.FilteredRecordArray. It essentially re-runs the filter from scratch. This same method is invoked when the filter is created in th first place. Parameters: array Array modelName String filter Function

LinkComponent#attributeBindings

attributeBindingsArray | Stringpublic Defined in packages/ember-htmlbars/lib/components/link-to.js:446 By default the {{link-to}} component will bind to the href and title attributes. It's discouraged that you override these defaults, however you can push onto the array if needed. Default: ['title', 'rel', 'tabindex', 'target']

DS.JSONSerializer#serializeIntoHash()

serializeIntoHash (hash, typeClass, snapshot, options) Defined in addon/serializers/json.js:1075 You can use this method to customize how a serialized record is added to the complete JSON hash to be sent to the server. By default the JSON Serializer does not namespace the payload and just sends the raw serialized JSON object. If your server expects namespaced keys, you should consider using the RESTSerializer. Otherwise you can override this method to customize how the record is added to t