DS.JSONSerializer

DS.JSONSerializer Class Extends: DS.Serializer Defined in: addon/serializers/json.js:19 Module: ember-data Ember Data 2.0 Serializer: In Ember Data a Serializer is used to serialize and deserialize records when they are transferred in and out of an external source. This process involves normalizing property names, transforming attribute values and serializing relationships. By default, Ember Data uses and recommends the JSONAPISerializer. JSONSerializer is useful for simpler or legacy back

Engine.buildRegistry()

buildRegistry (namespace) Ember.Registryprivatestatic Inherited from Ember.Engine but overwritten in packages/ember-application/lib/system/engine.js:370 This creates a registry with the default Ember naming conventions. It also configures the registry: registered views are created every time they are looked up (they are not singletons) registered templates are not factories; the registered value is returned directly. the router receives the application as its namespace property all controll

DS.Store#unloadAll()

unloadAll (modelName) Defined in addon/-private/system/store.js:1509 This method unloads all records in the store. Optionally you can pass a type which unload all records for a given type. store.unloadAll(); store.unloadAll('post'); Parameters: modelName String

Test.QUnitAdapter

Ember.Test.QUnitAdapter Class PUBLIC Extends: Ember.Test.Adapter Defined in: packages/ember-testing/lib/adapters/qunit.js:4 Module: ember This class implements the methods defined by Ember.Test.Adapter for the QUnit testing framework.

Bindings

Bindings Unlike most other frameworks that include some sort of binding implementation, bindings in Ember.js can be used with any object. That said, bindings are most often used within the Ember framework itself, and for most problems Ember app developers face, computed properties are the appropriate solution. The easiest way to create a two-way binding is to use a computed.alias(), that specifies the path to another object. husband = Ember.Object.create({ pets: 0 }); Wife = Ember.Object.e

VisibilitySupport#_isVisibleDidChange()

_isVisibleDidChangeprivate Defined in packages/ember-views/lib/mixins/visibility_support.js:33 When the view's isVisible property changes, toggle the visibility element of the actual DOM element.

DS.Model#hasMany()

hasMany (name) HasManyReference Defined in addon/-private/system/model/model.js:883 Available since 2.5.0 Get the reference for the specified hasMany relationship. Example // models/blog.js export default DS.Model.extend({ comments: DS.hasMany({ async: true }) }); var blog = store.push({ type: 'blog', id: 1, relationships: { comments: { data: [ { type: 'comment', id: 1 }, { type: 'comment', id: 2 } ] } } }); var commentsRef = blog.hasMany('comm

Application#visit()

visit (url, options) Promisepublic Defined in packages/ember-application/lib/system/application.js:777 Boot a new instance of Ember.ApplicationInstance for the current application and navigate it to the given url. Returns a Promise that resolves with the instance when the initial routing and rendering is complete, or rejects with any error that occured during the boot process. When autoboot is disabled, calling visit would first cause the application to boot, which runs the application init

ArrayProxy#arrangedContent

arrangedContentprivate Defined in packages/ember-runtime/lib/system/array_proxy.js:88 The array that the proxy pretends to be. In the default ArrayProxy implementation, this and content are the same. Subclasses of ArrayProxy can override this property to provide things like sorting and filtering.

DS.RecordArray#objectAtContent()

objectAtContent (index) DS.Modelprivate Defined in addon/-private/system/record-arrays/record-array.js:91 Retrieves an object from the content by index. Parameters: index Number Returns: DS.Model record