DS.Snapshot#attributes()

attributesObject Defined in addon/-private/system/snapshot.js:118 Returns all attributes and their corresponding values. Example // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); postSnapshot.attributes(); // => { author: 'Tomster', title: 'Ember.js rocks' } Returns: Object All attributes of the current snapshot

Ember.destroy()

destroy (obj) Voidprivate Defined in packages/ember-metal/lib/watching.js:67 Tears down the meta on an object so that it can be garbage collected. Multiple calls will have no effect. Parameters: obj Object the object to destroy Returns: Void

Using Ember Data

Using Ember Data Currently, our app is using hard-coded data for rentals in the rentals route handler to set the model. As our application grows, we will want to be able to create new rentals, make updates to them, delete them, and save these changes to a backend server. Ember integrates with a data management library called Ember Data to help solve this problem. Let's generate our first Ember Data model called rental: ember g model rental This results in the creation of a model file and a t

Troubleshooting

Troubleshooting Below are some common issues you may encounter when using the Inspector, along with the necessary steps to solve them. If your issue is not listed below, please submit an issue to the Inspector's GitHub repo. Ember Application Not Detected If the Inspector cannot detect an Ember application, you will see the following message: Some of the reasons this may happen: This is not an Ember application You are using an old Ember version ( < 1.0 ). You are using a protocol other t

DS.Model

DS.Model Class Extends: Ember.Object Uses: Ember.Evented Defined in: addon/-private/system/relationships/ext.js:96 Module: ember-data The model class that all Ember Data records descend from. This is the public API of Ember Data models. If you are using Ember Data in your application, this is the class you should use. If you are working on Ember Data internals, you most likely want to be dealing with InternalModel

DS.PromiseArray

DS.PromiseArray Class Extends: Ember.ArrayProxy Uses: Ember.PromiseProxyMixin Defined in: addon/-private/system/promise-proxies.js:7 Module: ember-data A PromiseArray is an object that acts like both an Ember.Array and a promise. When the promise is resolved the resulting value will be set to the PromiseArray's content property. This makes it easy to create data bindings with the PromiseArray that will be updated when the promise resolves. For more information see the Ember.PromiseProxyMix

LinkComponent

Ember.LinkComponent Class PRIVATE Extends: Ember.Component Defined in: packages/ember-htmlbars/lib/components/link-to.js:329 Module: ember-templates Ember.LinkComponent renders an element whose click event triggers a transition of the application's instance of Ember.Router to a supplied route by name. Ember.LinkComponent components are invoked with {{#link-to}}. Properties of this class can be overridden with reopen to customize application-wide behavior.

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

InstrumentationSupport

Ember.InstrumentationSupport Class PUBLIC Defined in: packages/ember-views/lib/mixins/instrumentation_support.js:8 Module: ember-views

DS#normalizeModelName()

normalizeModelName (modelName) Stringpublic Defined in addon/-private/system/normalize-model-name.js:6 This method normalizes a modelName into the format Ember Data uses internally. Parameters: modelName String Returns: String normalizedModelName