DS.RESTAdapter#dataForRequest()

dataForRequest (params) Objectpublic Defined in addon/adapters/rest.js:1196 Get the data (body or query params) for a request. Parameters: params Object Returns: Object data

Route#beforeModel()

beforeModel (transition) Promisepublic Defined in packages/ember-routing/lib/system/route.js:1257 This hook is the first of the route entry validation hooks called when an attempt is made to transition into a route or one of its children. It is called before model and afterModel, and is appropriate for cases when: 1) A decision can be made to redirect elsewhere without needing to resolve the model first. 2) Any async operations need to occur first before the model is attempted to be resolve

DS.Adapter#queryRecord()

queryRecord (store, type, query) Promise Defined in addon/adapter.js:184 The queryRecord() method is invoked when the store is asked for a single record through a query object. In response to queryRecord() being called, you should always fetch fresh data. Once found, you can asynchronously call the store's push() method to push the record into the store. Here is an example queryRecord implementation: Example app/adapters/application.js import DS from 'ember-data'; import Ember from 'ember';

DS.JSONSerializer#extractRelationship()

extractRelationship (relationshipModelName, relationshipHash) Object Defined in addon/serializers/json.js:588 Returns a relationship formatted as a JSON-API "relationship object". http://jsonapi.org/format/#document-resource-object-relationships Parameters: relationshipModelName Object relationshipHash Object Returns: Object

Evented#off()

off (name, target, method) public Defined in packages/ember-runtime/lib/mixins/evented.js:127 Cancels subscription for given name, target, and method. Parameters: name String The name of the event target Object The target of the subscription method Function The function of the subscription Returns: this

Evented

Ember.Evented Class PUBLIC Defined in: packages/ember-runtime/lib/mixins/evented.js:14 Module: ember-runtime This mixin allows for Ember objects to subscribe to and emit events. App.Person = Ember.Object.extend(Ember.Evented, { greet: function() { // ... this.trigger('greet'); } }); var person = App.Person.create(); person.on('greet', function() { console.log('Our person has greeted'); }); person.greet(); // outputs: 'Our person has greeted' You can also chain multiple e

Configuring Your App

Configuring Your App Ember CLI ships with support for managing your application's environment. Ember CLI will setup a default environment config file at config/environment. Here, you can define an ENV object for each environment, which are currently limited to three: development, test, and production. The ENV object contains three important keys: EmberENV can be used to define Ember feature flags (see the Feature Flags guide). APP can be used to pass flags/options to your application instan

ViewTargetActionSupport#rerender()

rerenderpublic Defined in packages/ember-views/lib/mixins/view_support.js:62 Renders the view again. This will work regardless of whether the view is already in the DOM or not. If the view is in the DOM, the rendering process will be deferred to give bindings a chance to synchronize. If children were added during the rendering process using appendChild, rerender will remove them, because they will be added again if needed by the next render. In general, if the display of your view changes,

DS.RESTAdapter#findAll()

findAll (store, type, sinceToken, snapshotRecordArray) Promise Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:439 Called by the store in order to fetch a JSON array for all of the records for a given type. The findAll method makes an Ajax (HTTP GET) request to a URL computed by buildURL, and returns a promise for the resulting payload. Parameters: store DS.Store type DS.Model sinceToken String snapshotRecordArray DS.SnapshotRecordArray Returns: Promise

ViewTargetActionSupport#replaceIn()

replaceIn (target) Ember.Viewprivate Defined in packages/ember-views/lib/mixins/view_support.js:204 Replaces the content of the specified parent element with this view's element. If the view does not have an HTML representation yet, the element will be generated automatically. Note that this method just schedules the view to be appended; the DOM element will not be appended to the given element until all bindings have finished synchronizing Parameters: target String|DOMElement|jQuery A