Transition#catch()

catch (onRejection, label) Promisepublic Defined in bower_components/router.js/lib/router/transition.js:155 Forwards to the internal promise property which you can use in situations where you want to pass around a thennable, but not the Transition itself. Parameters: onRejection Function label String optional string for labeling the promise. Useful for tooling. Returns: Promise

DS.JSONAPIAdapter#ajaxOptions()

ajaxOptions (url, type, options) Objectprivate Inherited from DS.RESTAdapter but overwritten in addon/adapters/json-api.js:21 Parameters: url String type String The request type GET, POST, PUT, DELETE etc. options Object Returns: Object

Evented#one()

one (name, target, method) public Defined in packages/ember-runtime/lib/mixins/evented.js:78 Subscribes a function to a named event and then cancels the subscription after the first time the event is triggered. It is good to use one when you only care about the first time an event has taken place. This function takes an optional 2nd argument that will become the "this" value for the callback. If this argument is passed then the 3rd argument becomes the function. Parameters: name String

DS.EmbeddedRecordsMixin#removeEmbeddedForeignKey()

removeEmbeddedForeignKey (snapshot, embeddedSnapshot, relationship, json) Defined in addon/serializers/embedded-records-mixin.js:453 When serializing an embedded record, modify the property (in the json payload) that refers to the parent record (foreign key for relationship). Serializing a belongsTo relationship removes the property that refers to the parent record Serializing a hasMany relationship does not remove the property that refers to the parent record. Parameters: snapshot DS.S

DS.JSONSerializer#_canSerialize()

_canSerialize (key) Booleanprivate Defined in addon/serializers/json.js:826 Check attrs.key.serialize property to inform if the key can be serialized Parameters: key String Returns: Boolean true if the key can be serialized

Instrumentation

Ember.Instrumentation Namespace PRIVATE Defined in: packages/ember-metal/lib/instrumentation.js:4 Module: ember The purpose of the Ember Instrumentation module is to provide efficient, general-purpose instrumentation for Ember. Subscribe to a listener by using Ember.subscribe: Ember.subscribe("render", { before(name, timestamp, payload) { }, after(name, timestamp, payload) { } }); If you return a value from the before callback, that same value will be passed as a fourth paramet

DS.RecordArrayManager#updateFilterRecordArray()

updateFilterRecordArray (array, filter, typeClass, record) Defined in addon/-private/system/record-array-manager.js:157 Update an individual filter. Parameters: array DS.FilteredRecordArray filter Function typeClass DS.Model record InternalModel

Customizing Adapters

Customizing Adapters In Ember Data, the Adapter determines how data is persisted to a backend data store, such as the URL format and headers for a REST API. (The format of the data itself is determined by the serializer.) Ember Data's default Adapter has some built-in assumptions of how a REST API should look. If your backend conventions differ from these assumptions Ember Data makes it easy to change its functionality by swapping out or extending the default Adapter. Some reasons for customi

DS.JSONSerializer#normalizeFindRecordResponse()

normalizeFindRecordResponse (store, primaryModelClass, payload, id, requestType) Object Defined in addon/serializers/json.js:262 Available since 1.13.0 Parameters: store DS.Store primaryModelClass DS.Model payload Object id String|Number requestType String Returns: Object JSON-API Document

Router#didTransition()

didTransitionpublic Defined in packages/ember-routing/lib/system/router.js:227 Available since 1.2.0 Handles updating the paths and notifying any listeners of the URL change. Triggers the router level didTransition hook. For example, to notify google analytics when the route changes, you could use this hook. (Note: requires also including GA scripts, etc.) let Router = Ember.Router.extend({ location: config.locationType, didTransition: function() { this._super(...arguments); r