DS.JSONSerializer#serializeHasMany()

serializeHasMany (snapshot, json, relationship) Defined in addon/serializers/json.js:1206 serializeHasMany can be used to customize how DS.hasMany properties are serialized. Example app/serializers/post.js import DS from 'ember-data'; export default DS.JSONSerializer.extend({ serializeHasMany: function(snapshot, json, relationship) { var key = relationship.key; if (key === 'comments') { return; } else { this._super.apply(this, arguments); } } }); Paramet

CoreObject.metaForProperty()

metaForProperty (key) privatestatic Defined in packages/ember-runtime/lib/system/core_object.js:792 In some cases, you may want to annotate computed properties with additional metadata about how they function or what values they operate on. For example, computed property functions may close over variables that are then no longer available for introspection. You can pass a hash of these values to a computed property like this: person: function() { var personId = this.get('personId'); ret

Component#willRender()

willRenderpublic Defined in packages/ember-htmlbars/lib/component.js:394 Available since 1.13.0 Called before a component has been rendered, both on initial render and in subsequent rerenders.

DS.RecordArray#type

typeDS.Model Defined in addon/-private/system/record-arrays/record-array.js:26 The model type contained by this record array.

LinkComponent#currentWhen

currentWhenpublic Inherited from Ember.LinkComponent but overwritten in packages/ember-htmlbars/lib/components/link-to.js:356 Used to determine when this LinkComponent is active.

DataAdapter#columnsForType()

columnsForType (type) Arrayprivate Defined in packages/ember-extension-support/lib/data_adapter.js:264 Get the columns for a given model type. Parameters: type Class The model type. Returns: Array An array of columns of the following format: name: {String} The name of the column. desc: {String} Humanized description (what would show in a table column name).

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

DS.Store#defaultAdapter

defaultAdapterprivate Defined in addon/-private/system/store.js:269 This property returns the adapter, after resolving a possible string key. If the supplied adapter was a class, or a String property path resolved to a class, this property will instantiate the class. This property is cacheable, so the same instance of a specified adapter class should be used for the lifetime of the store. Returns: DS.Adapter

DS.EmbeddedRecordsMixin#serializeBelongsTo()

serializeBelongsTo (snapshot, json, relationship) Defined in addon/serializers/embedded-records-mixin.js:141 Serialize belongsTo relationship when it is configured as an embedded object. This example of an author model belongs to a post model: Post = DS.Model.extend({ title: DS.attr('string'), body: DS.attr('string'), author: DS.belongsTo('author') }); Author = DS.Model.extend({ name: DS.attr('string'), post: DS.belongsTo('post') }); Use a custom (type) seriali

DefaultResolver#useRouterNaming()

useRouterNaming (parsedName) protected Defined in packages/ember-application/lib/system/resolver.js:286 Given a parseName object (output from parseName), apply the conventions expected by Ember.Router Parameters: parsedName Object a parseName object with the parsed fullName lookup string