NativeArray

Ember.NativeArray Class PUBLIC Uses: Ember.MutableArray Uses: Ember.Observable Uses: Ember.Copyable Defined in: packages/ember-runtime/lib/system/native_array.js:24 Module: ember-runtime The NativeArray mixin contains the properties needed to make the native Array support Ember.MutableArray and all of its dependent APIs. Unless you have EmberENV.EXTEND_PROTOTYPES or EmberENV.EXTEND_PROTOTYPES.Array set to false, this will be applied automatically. Otherwise you can apply the mixin at anyti

Binding Element Attributes

Binding Element Attributes In addition to normal text, you may also want to have your templates contain HTML elements whose attributes are bound to the controller. For example, imagine your controller has a property that contains a URL to an image: <div id="logo"> <img src={{logoUrl}} alt="Logo"> </div> This generates the following HTML: <div id="logo"> <img src="http://www.example.com/images/logo.png" alt="Logo"> </div> If you use data binding with a

DS.JSONAPISerializer#payloadTypeFromModelName()

payloadTypeFromModelName (modelname) Stringpublic Defined in addon/serializers/json-api.js:678 payloadTypeFromModelName can be used to change the mapping for the type in the payload, taken from the model name. Say your API namespaces the type of a model and expects the following payload when you update the post model: // POST /api/posts/1 { "data": { "id": 1, "type": "api::v1::post" } } By overwriting payloadTypeFromModelName you can specify that the namespaces model name for t

Inspecting Objects via the Container

Inspecting Objects via the Container Every Ember application has a container that maintains object instances for you. You can inspect these instances using the Container tab. This is useful for objects that don't fall under a dedicated menu, such as services. Click on the Container tab, and you will see a list of instances the container is holding. Click on a type to see the list of all instances of that type maintained by the container. Inspecting Instances Click on a row to inspect a given

DS.JSONSerializer#normalizeArrayResponse()

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

Observable#endPropertyChanges()

endPropertyChangesEmber.Observableprivate Defined in packages/ember-runtime/lib/mixins/observable.js:251 Ends a grouping of property changes. You can use this method to group property changes so that notifications will not be sent until the changes are finished. If you plan to make a large number of changes to an object at one time, you should call beginPropertyChanges() at the beginning of the changes to defer change notifications. When you are done making changes, call this method to deli

TextSupport

Ember.TextSupport Class PRIVATE Extends: Ember.Mixin Uses: Ember.TargetActionSupport Defined in: packages/ember-views/lib/mixins/text_support.js:16 Module: ember-views TextSupport is a shared mixin used by both Ember.TextField and Ember.TextArea. TextSupport adds a number of methods that allow you to specify a controller action to invoke when a certain event is fired on your text field or textarea. The specifed controller action would get the current value of the field passed in as the onl

DS.JSONSerializer#normalizeUpdateRecordResponse()

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

InstrumentationSupport

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

DS.JSONAPISerializer#keyForAttribute()

keyForAttribute (key, method) String Inherited from DS.JSONSerializer but overwritten in addon/serializers/json-api.js:397 keyForAttribute can be used to define rules for how to convert an attribute name in your model to a key in your JSON. By default JSONAPISerializer follows the format used on the examples of http://jsonapi.org/format and uses dashes as the word separator in the JSON attribute keys. This behaviour can be easily customized by extending this method. Example app/serializers/