Templates.helpers.log()

log (values) public Defined in packages/ember-htmlbars/lib/helpers/log.js:8 log allows you to output the value of variables in the current rendering context. log also accepts primitive types such as strings or numbers. {{log "myVariable:" myVariable }} Parameters: values *

Enumerable#contains()

contains (obj) Booleandeprecatedpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:217 Use Enumerable#includes instead. See http://emberjs.com/deprecations/v2.x#toc_enumerable-contains Returns true if the passed object can be found in the receiver. The default version will iterate through the enumerable until the object is found. You may want to override this with a more efficient version. let arr = ['a', 'b', 'c']; arr.contains('a'); // true arr.contains('z'); // false

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

DS.RESTAdapter#urlForRequest()

urlForRequest (params) Stringpublic Defined in addon/adapters/rest.js:1274 Get the URL for a request. Parameters: params Object Returns: String URL

InjectedProperty

Ember.InjectedProperty Class PRIVATE Defined in: packages/ember-metal/lib/injected_property.js:7 Module: ember Read-only property that returns the result of a container lookup.

RSVP.Promise#finally()

finally (callback, label) Promise Defined in bower_components/rsvp/lib/rsvp/promise.js:442 finally will be invoked regardless of the promise's fate just as native try/catch/finally behaves Synchronous example: findAuthor() { if (Math.random() > 0.5) { throw new Error(); } return new Author(); } try { return findAuthor(); // succeed or fail } catch(error) { return findOtherAuther(); } finally { // always runs // doesn't affect the return value } Asynchronous example: f

DS.RecordArray#isLoaded

isLoadedBoolean Defined in addon/-private/system/record-arrays/record-array.js:46 The flag to signal a RecordArray is finished loading data. Example var people = store.peekAll('person'); people.get('isLoaded'); // true

Ember.getOwner()

getOwner (object) Objectpublic Defined in packages/container/lib/owner.js:10 Available since 2.3.0 Framework objects in an Ember application (components, services, routes, etc.) are created via a factory and dependency injection system. Each of these objects is the responsibility of an "owner", which handled its instantiation and manages its lifetime. getOwner fetches the owner object responsible for an instance. This can be used to lookup or resolve other class instances, or register new f

Component#willUpdate event

willUpdatepublic Defined in packages/ember-htmlbars/lib/component.js:442 Available since 1.13.0 Called when the component is about to update and rerender itself. Called only during a rerender, not during an initial render.

DS.Store#createRecord()

createRecord (modelName, inputProperties) DS.Model Defined in addon/-private/system/store.js:298 Create a new record in the current store. The properties passed to this method are set on the newly created record. To create a new instance of a Post: store.createRecord('post', { title: "Rails is omakase" }); To create a new instance of a Post that has a relationship with a User record: var user = this.store.peekRecord('user', 1); store.createRecord('post', { title: "Rails is omakase",