DS.RESTAdapter#findRecord()

findRecord (store, type, id, snapshot) Promise Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:406 Available since 1.13.0 Called by the store in order to fetch the JSON for a given type and ID. The findRecord method makes an Ajax request to a URL computed by buildURL, and returns a promise for the resulting payload. This method performs an HTTP GET request with the id provided as part of the query string. Parameters: store DS.Store type DS.Model id String sna

DS.ManyArray

DS.ManyArray Class Extends: Ember.Object Uses: Ember.MutableArray Uses: Ember.Evented Defined in: addon/-private/system/many-array.js:12 Module: ember-data A ManyArray is a MutableArray that represents the contents of a has-many relationship. The ManyArray is instantiated lazily the first time the relationship is requested. Inverses Often, the relationships in Ember Data applications will have an inverse. For example, imagine the following models are defined: app/models/post.js import DS f

Ember.computed.reads()

reads (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:568 This is a more semantically meaningful alias of computed.oneWay, whose name is somewhat ambiguous as to which direction the data flows. Parameters: dependentKey String Returns: Ember.ComputedProperty computed property which creates a one way computed property to the original value for property.

Enumerable#reject()

reject (callback, target) Arraypublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:415 Returns an array with all of the items in the enumeration where the passed function returns false. This method is the inverse of filter(). The callback method you provide should have the following signature (all parameters are optional): function(item, index, enumerable); item is the current item in the iteration. index is the current index in the iteration enumerable is the enumerable o

Transition#retry()

retryTransitionpublic Defined in bower_components/router.js/lib/router/transition.js:207 Retries a previously-aborted transition (making sure to abort the transition if it's still active). Returns a new transition that represents the new attempt to transition. Returns: Transition new transition

TextArea

Ember.TextArea Class PUBLIC Extends: Ember.Component Uses: Ember.TextSupport Defined in: packages/ember-htmlbars/lib/components/text_area.js:8 Module: ember-views The internal class used to create textarea element when the {{textarea}} helper is used. See Ember.Templates.helpers.textarea for usage details. Layout and LayoutName properties Because HTML textarea elements do not contain inner HTML the layout and layoutName properties will not be applied. See Ember.View's layout section for mo

ViewTargetActionSupport

Ember.ViewTargetActionSupport Class PRIVATE Extends: Ember.TargetActionSupport Defined in: packages/ember-views/lib/mixins/view_target_action_support.js:5 Module: ember Ember.ViewTargetActionSupport is a mixin that can be included in a view class to add a triggerAction method with semantics similar to the Handlebars {{action}} helper. It provides intelligent defaults for the action's target: the view's controller; and the context that is sent with the action: the view's context. Note: In n

Redirecting

Redirecting Sometimes you want to redirect a user to a different page than what they requested for. For example, if they're not logged in, you might want to prevent them from editing their profile, accessing private information, or checking out items in their shopping cart. Usually you want to redirect them to the login page, and after they have successfully logged in, take them back to the page they originally wanted to access. There are many other reasons you probably want to have the last

DS.Adapter#createRecord()

createRecord (store, type, snapshot) Promise Defined in addon/adapter.js:282 Implement this method in a subclass to handle the creation of new records. Serializes the record and sends it to the server. 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 }); return new Ember.RSVP.Promise(function(resolve, reject) { Ember.$.aja

Enumerable#lastObject

lastObjectObjectpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:177 Helper method returns the last object from a collection. If your enumerable contains only one object, this method should always return that object. If your enumerable is empty, this method should return undefined. let arr = ['a', 'b', 'c']; arr.get('lastObject'); // 'c' let arr = []; arr.get('lastObject'); // undefined Returns: Object the last object or undefined