Registry#describe()

describe (fullName) Stringprivate Defined in packages/container/lib/registry.js:262 A hook that can be used to describe how the resolver will attempt to find the factory. For example, the default Ember .describe returns the full class name (including namespace) where Ember's resolver expects to find the fullName. Parameters: fullName String Returns: String described fullName

DataAdapter#wrapModelType()

wrapModelType (klass, modelName) Objectprivate Defined in packages/ember-extension-support/lib/data_adapter.js:311 Wraps a given model type and observes changes to it. Parameters: klass Class A model class. modelName String Name of the class. Returns: Object Contains the wrapped type and the function to remove observers Format: type: {Object} The wrapped type. The wrapped type has the following format: name: {String} The name of the type. count: {Integer} The number of record

DS.RecordArrayManager#createFilteredRecordArray()

createFilteredRecordArray (typeClass, filter, query) DS.FilteredRecordArray Defined in addon/-private/system/record-array-manager.js:262 Create a DS.FilteredRecordArray for a type and register it for updates. Parameters: typeClass DS.Model filter Function query Object (optional Returns: DS.FilteredRecordArray

Helper.helper()

helper (helper) publicstatic Defined in packages/ember-htmlbars/lib/helper.js:109 Available since 1.13.0 In many cases, the ceremony of a full Ember.Helper class is not required. The helper method creates pure-function helpers without instances. For example: // app/helpers/format-currency.js export function formatCurrency([cents], hash) { let currency = hash.currency; return `${currency}${cents * 0.01}`; }); export default Ember.Helper.helper(formatCurrency); // tests/myhelper.js impo

DS.BuildURLMixin#urlForDeleteRecord()

urlForDeleteRecord (id, modelName, snapshot) String Defined in addon/-private/adapters/build-url-mixin.js:348 Builds a URL for a record.save() call when the record has been deleted locally. Example: app/adapters/application.js import DS from 'ember-data'; export default DS.RESTAdapter.extend({ urlForDeleteRecord(id, modelName, snapshot) { return this._super(...arguments) + '/destroy'; } }); Parameters: id String modelName String snapshot DS.Snapshot Returns: String

DS.JSONAPISerializer

DS.JSONAPISerializer Class Extends: DS.JSONSerializer Defined in: addon/serializers/json-api.js:14 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. JSONAPISerializer supports the http://jsonapi.org/ spec and is the serializer recommended by Ember Data. T

HistoryLocation#getURL()

getURLStringprivate Defined in packages/ember-routing/lib/location/history_location.js:59 Returns the current location.pathname without rootURL or baseURL Returns: String url

DS.JSONSerializer#serialize()

serialize (snapshot, options) Object Inherited from DS.Serializer but overwritten in addon/serializers/json.js:898 Called when a record is saved in order to convert the record into JSON. By default, it creates a JSON object with a key for each attribute and belongsTo relationship. For example, consider this model: app/models/comment.js import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr(), body: DS.attr(), author: DS.belongsTo('user') }); The default serial

DS.Snapshot#belongsTo()

belongsTo (keyName, options) (DS.Snapshot|String|null|undefined) Defined in addon/-private/system/snapshot.js:161 Returns the current value of a belongsTo relationship. belongsTo takes an optional hash of options as a second parameter, currently supported options are: id: set to true if you only want the ID of the related record to be returned. Example // store.push('post', { id: 1, title: 'Hello World' }); // store.createRecord('comment', { body: 'Lorem ipsum', post: post }); commentSnaps

Ember.computed.empty()

empty (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:53 Available since 1.6.0 A computed property that returns true if the value of the dependent property is null, an empty string, empty array, or empty function. Example let ToDoList = Ember.Object.extend({ isDone: Ember.computed.empty('todos') }); let todoList = ToDoList.create({ todos: ['Unit Test', 'Documentation', 'Release'] }); todoList.get('isDone'); // false todoLis