Test

Ember.Test Class PUBLIC Defined in: packages/ember-testing/lib/test.js:29 Module: ember-testing This is a container for an assortment of testing related functionality: Choose your default test adapter (for your framework of choice). Register/Unregister additional test helpers. Setup callbacks to be fired when the test helpers are injected into your application.

Specifying the URL Type

Specifying the URL Type The Ember router has four options to manage your application's URL: history, which uses the HTML5 History API; hash, which uses anchor-based URLs; auto, which uses history if supported by the user's browser, and falls back to hash otherwise; and none, which doesn't update the URL. By default, Ember CLI configures the router to use auto. You can change this option in config/environment.js under ENV.locationType. history When using history, Ember uses the browser's histo

DS.Model#isLoading

isLoading{Boolean} Defined in addon/-private/system/model/model.js:68 If this property is true the record is in the loading state. A record enters this state when the store asks the adapter for its data. It remains in this state until the adapter provides the requested data.

Ember.computed.equal()

equal (dependentKey, value) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:253 A computed property that returns true if the provided dependent property is equal to the given value. Example let Hamster = Ember.Object.extend({ napTime: Ember.computed.equal('state', 'sleepy') }); let hamster = Hamster.create(); hamster.get('napTime'); // false hamster.set('state', 'sleepy'); hamster.get('napTime'); // true hamster.set('state', 'hungry'); hams

DS.Store#getReference()

getReference (type, id) RecordReference Defined in addon/-private/system/store.js:869 Available since 2.5.0 Get the reference for the specified record. Example var userRef = store.getReference('user', 1); // check if the user is loaded var isLoaded = userRef.value() !== null; // get the record of the reference (null if not yet available) var user = userRef.value(); // get the identifier of the reference if (userRef.remoteType() === "id") { var id = userRef.id(); } // load user (via stor

DS.Model#isLoaded

isLoaded{Boolean} Defined in addon/-private/system/model/model.js:79 If this property is true the record is in the loaded state. A record enters this state when its data is populated. Most of a record's lifecycle is spent inside substates of the loaded state. Example var record = store.createRecord('model'); record.get('isLoaded'); // true store.findRecord('model', 1).then(function(model) { model.get('isLoaded'); // true });

DataAdapter#watchModelTypes()

watchModelTypes (typesAdded, typesUpdated) Functionpublic Defined in packages/ember-extension-support/lib/data_adapter.js:129 Fetch the model types and observe them for changes. Parameters: typesAdded Function Callback to call to add types. Takes an array of objects containing wrapped types (returned from `wrapModelType`). typesUpdated Function Callback to call when a type has changed. Takes an array of objects containing wrapped types. Returns: Function Method to call to rem

ViewTargetActionSupport#willInsertElement event

willInsertElementpublic Defined in packages/ember-views/lib/mixins/view_support.js:297 Called when a view is going to insert an element into the DOM.

DS.Model#toJSON()

toJSON (options) Object Defined in addon/-private/system/model/model.js:400 Use DS.JSONSerializer to get the JSON representation of a record. toJSON takes an optional hash as a parameter, currently supported options are: includeId: true if the record's ID should be included in the JSON representation. Parameters: options Object Returns: Object A JSON representation of the object.

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