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

Ember.sendEvent()

sendEvent (obj, eventName, params, actions) public Defined in packages/ember-metal/lib/events.js:195 Send an event. The execution of suspended listeners is skipped, and once listeners are removed. A listener without a target is executed on the passed object. If an array of actions is not passed, the actions stored on the passed object are invoked. Parameters: obj eventName String params Array Optional parameters for each listener. actions Array Optional array of actions (lis

PromiseProxyMixin#isRejected

isRejectedpublic Defined in packages/ember-runtime/lib/mixins/promise_proxy.js:121 Will become true if the proxied promise is rejected. Default: false

DefaultResolver

Ember.DefaultResolver Class PUBLIC Extends: Ember.Object Defined in: packages/ember-application/lib/system/resolver.js:39 Module: ember-application The DefaultResolver defines the default lookup rules to resolve container lookups before consulting the container for registered items: templates are looked up on Ember.TEMPLATES other names are looked up on the application after converting the name. For example, controller:post looks up App.PostController by default. there are some nuances (s

DS.Model#isReloading

isReloading{Boolean} Defined in addon/-private/system/model/model.js:265 If true the store is attempting to reload the record form the adapter. Example record.get('isReloading'); // false record.reload(); record.get('isReloading'); // true

DS.Adapter#serialize()

serialize (snapshot, options) Object Defined in addon/adapter.js:255 Proxies to the serializer's serialize method. Example app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ createRecord: function(store, type, snapshot) { var data = this.serialize(snapshot, { includeId: true }); var url = `/${type.modelName}`; // ... } }); Parameters: snapshot DS.Snapshot options Object Returns: Object serialized snapshot

TextSupport#keyPress()

keyPress (event) private Defined in packages/ember-views/lib/mixins/text_support.js:277 Allows you to specify a controller action to invoke when a key is pressed. To use this method, give your field a key-press attribute. The value of that attribute should be the name of the action in your controller you that wish to invoke. For an example on how to use the key-press attribute, please reference the example near the top of this file. Parameters: event Event

DS.BuildURLMixin#urlForUpdateRecord()

urlForUpdateRecord (id, modelName, snapshot) String Defined in addon/-private/adapters/build-url-mixin.js:323 Builds a URL for a record.save() call when the record has been update locally. Example: app/adapters/application.js import DS from 'ember-data'; export default DS.RESTAdapter.extend({ urlForUpdateRecord(id, modelName, snapshot) { return `/${id}/feed?access_token=${snapshot.adapterOptions.token}`; } }); Parameters: id String modelName String snapshot DS.Snapshot

DS.JSONAPISerializer#serializeAttribute()

serializeAttribute (snapshot, json, key, attribute) Inherited from DS.JSONSerializer but overwritten in addon/serializers/json-api.js:487 Parameters: snapshot DS.Snapshot json Object key String attribute Object

DS.JSONSerializer#serializeHasMany()

serializeHasMany (snapshot, json, relationship) Defined in addon/serializers/json.js:1206 serializeHasMany can be used to customize how DS.hasMany properties are serialized. Example app/serializers/post.js import DS from 'ember-data'; export default DS.JSONSerializer.extend({ serializeHasMany: function(snapshot, json, relationship) { var key = relationship.key; if (key === 'comments') { return; } else { this._super.apply(this, arguments); } } }); Paramet