EventDispatcher#events

eventsObjectprivate Defined in packages/ember-views/lib/system/event_dispatcher.js:35 The set of events names (and associated handler function names) to be setup and dispatched by the EventDispatcher. Modifications to this list can be done at setup time, generally via the Ember.Application.customEvents hash. To add new events to be listened to: let App = Ember.Application.create({ customEvents: { paste: 'paste' } }); To prevent default events from being listened to: let App = Ember

DS.BuildURLMixin#pathForType()

pathForType (modelName) String Defined in addon/-private/adapters/build-url-mixin.js:410 Determines the pathname for a given type. By default, it pluralizes the type's name (for example, 'post' becomes 'posts' and 'person' becomes 'people'). Pathname customization For example if you have an object LineItem with an endpoint of "/line_items/". app/adapters/application.js import DS from 'ember-data'; export default DS.RESTAdapter.extend({ pathForType: function(modelName) { var decameliz

Map

Ember.Map Class PRIVATE Defined in: packages/ember-metal/lib/map.js:222 Module: ember-metal A Map stores values indexed by keys. Unlike JavaScript's default Objects, the keys of a Map can be any JavaScript object. Internally, a Map has two data structures: keys: an OrderedSet of all of the existing keys values: a JavaScript Object indexed by the Ember.guidFor(key) When a key/value pair is added for the first time, we add the key to the keys OrderedSet, and create or replace an entry in

DS.Adapter#updateRecord()

updateRecord (store, type, snapshot) Promise Defined in addon/adapter.js:322 Implement this method in a subclass to handle the updating of a record. Serializes the record update and sends it to the server. The updateRecord method is expected to return a promise that will resolve with the serialized record. This allows the backend to inform the Ember Data store the current state of this record after the update. If it is not possible to return a serialized record the updateRecord promise can

DS.Store#serializerFor()

serializerFor (modelName) DS.Serializerpublic Defined in addon/-private/system/store.js:2402 Returns an instance of the serializer for a given type. For example, serializerFor('person') will return an instance of App.PersonSerializer. If no App.PersonSerializer is found, this method will look for an App.ApplicationSerializer (the default serializer for your entire application). if no App.ApplicationSerializer is found, it will attempt to get the defaultSerializer from the PersonAdapter (ada

DS.JSONSerializer#serializeIntoHash()

serializeIntoHash (hash, typeClass, snapshot, options) Defined in addon/serializers/json.js:1075 You can use this method to customize how a serialized record is added to the complete JSON hash to be sent to the server. By default the JSON Serializer does not namespace the payload and just sends the raw serialized JSON object. If your server expects namespaced keys, you should consider using the RESTSerializer. Otherwise you can override this method to customize how the record is added to t

Library Info

Library Info To see a list of libraries used in your application, click on the Info menu. This view displays the libraries used, along with their version. Registering a Library If you would like to add your own application or library to the list, you can register it using: Ember.libraries.register(libraryName, libraryVersion); Ember Cli If you're using the ember-cli-app-version addon, your application's name and version will be added to the list automatically.

DS.JSONSerializer#serializeBelongsTo()

serializeBelongsTo (snapshot, json, relationship) Defined in addon/serializers/json.js:1153 serializeBelongsTo can be used to customize how DS.belongsTo properties are serialized. Example app/serializers/post.js import DS from 'ember-data'; export default DS.JSONSerializer.extend({ serializeBelongsTo: function(snapshot, json, relationship) { var key = relationship.key; var belongsTo = snapshot.belongsTo(key); key = this.keyForRelationship ? this.keyForRelationship(key, "be

DS.JSONSerializer#extractAttributes()

extractAttributes (modelClass, resourceHash) Object Defined in addon/serializers/json.js:564 Returns the resource's attributes formatted as a JSON-API "attributes object". http://jsonapi.org/format/#document-resource-object-attributes Parameters: modelClass Object resourceHash Object Returns: Object

DS.ServerError#errorsArrayToHash()

errorsArrayToHashprivate Defined in addon/adapters/errors.js:199