RegistryProxyMixin#registeredOptionsForType()

registeredOptionsForType (type) Objectpublic Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:193 Return the registered options for all factories of a type. Parameters: type String Returns: Object options

DS.Store#findByIds()

findByIds (modelName, ids) Promiseprivate Defined in addon/-private/system/store.js:688 This method makes a series of requests to the adapter's find method and returns a promise that resolves once they are all loaded. Parameters: modelName String ids Array Returns: Promise promise

DS.JSONSerializer#extractErrors()

extractErrors (store, typeClass, payload, id) Object Defined in addon/serializers/json.js:1322 extractErrors is used to extract model errors when a call to DS.Model#save fails with an InvalidError. By default Ember Data expects error information to be located on the errors property of the payload object. This serializer expects this errors object to be an Array similar to the following, compliant with the JSON-API specification: { "errors": [ { "detail": "This username is alread

DS.Store#_generateId()

_generateId (modelName, properties) Stringprivate Defined in addon/-private/system/store.js:361 If possible, this method asks the adapter to generate an ID for a newly created record. Parameters: modelName String properties Object from the new record Returns: String if the adapter can generate one, an ID

Enumerable#uniqBy()

uniqByEmber.Enumerablepublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:1082 Returns a new enumerable that contains only items containing a unique property value. The default implementation returns an array regardless of the receiver type. let arr = [{ value: 'a' }, { value: 'a' }, { value: 'b' }, { value: 'b' }]; arr.uniqBy('value'); // [{ value: 'a' }, { value: 'b' }] Returns: Ember.Enumerable

Displaying the Keys in an Object

Displaying the Keys in an Object If you need to display all of the keys or values of a JavaScript object in your template, you can use the {{#each-in}} helper: /app/components/store-categories.js import Ember from 'ember'; export default Ember.Component.extend({ willRender() { // Set the "categories" property to a JavaScript object // with the category name as the key and the value a list // of products. this.set('categories', { 'Bourbons': ['Bulleit', 'Four Roses', '

RSVP.EventTarget#off()

off (eventName, callback) private Defined in bower_components/rsvp/lib/rsvp/events.js:109 You can use off to stop firing a particular callback for an event: function doStuff() { // do stuff! } object.on('stuff', doStuff); object.trigger('stuff'); // doStuff will be called // Unregister ONLY the doStuff callback object.off('stuff', doStuff); object.trigger('stuff'); // doStuff will NOT be called If you don't pass a callback argument to off, ALL callbacks for the event will not be executed

Ember.computed

Ember.computed Namespace PUBLIC Defined in: packages/ember-metal/lib/computed.js:452 Module: ember-metal This helper returns a new property descriptor that wraps the passed computed property function. You can use this helper to define properties with mixins or via Ember.defineProperty(). If you pass a function as an argument, it will be used as a getter. A computed property defined in this way might look like this: let Person = Ember.Object.extend({ init() { this._super(...arguments)

RegistryProxyMixin#register()

register (fullName, factory, options) public Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:29 Registers a factory that can be used for dependency injection (with inject) or for service lookup. Each factory is registered with a full name including two parts: type:name. A simple example: let App = Ember.Application.create(); App.Orange = Ember.Object.extend(); App.register('fruit:favorite', App.Orange); Ember will resolve factories from the App namespace automatically. For

RegistryProxyMixin

RegistryProxyMixin Class PRIVATE Defined in: packages/ember-runtime/lib/mixins/registry_proxy.js:9 Module: ember-runtime RegistryProxyMixin is used to provide public access to specific registry functionality.