String#camelize()

camelize (str) Stringpublic Defined in packages/ember-runtime/lib/system/string.js:263 Returns the lowerCamelCase form of a string. 'innerHTML'.camelize(); // 'innerHTML' 'action_name'.camelize(); // 'actionName' 'css-class-name'.camelize(); // 'cssClassName' 'my favorite items'.camelize(); // 'myFavoriteItems' 'My Favorite Items'.camelize(); // 'myFavoriteItems' 'private-docs/owner-invoice'.camelize(); // 'privateDocs/ownerInvoice' Parameters: str String The str

CoreObject#destroy()

destroyEmber.Objectpublic Defined in packages/ember-runtime/lib/system/core_object.js:417 Destroys an object by setting the isDestroyed flag and removing its metadata, which effectively destroys observers and bindings. If you try to set a property on a destroyed object, an exception will be raised. Note that destruction is scheduled for the end of the run loop and does not happen immediately. It will set an isDestroying flag immediately. Returns: Ember.Object receiver

Freezable

Ember.Freezable Class DEPRECATED PRIVATE Defined in: packages/ember-runtime/lib/mixins/freezable.js:11 Module: ember-runtime The Ember.Freezable mixin implements some basic methods for marking an object as frozen. Once an object is frozen it should be read only. No changes may be made the internal state of the object. Enforcement To fully support freezing in your subclass, you must include this mixin and override any method that might alter any property on the object to instead raise an ex

DS.Model.relationships

relationshipsEmber.Mapstatic Defined in addon/-private/system/relationships/ext.js:325 The model's relationships as a map, keyed on the type of the relationship. The value of each entry is an array containing a descriptor for each relationship with that type, describing the name of the relationship as well as the type. For example, given the following model definition: app/models/blog.js import DS from 'ember-data'; export default DS.Model.extend({ users: DS.hasMany('user'), owner: DS.

Ember.isPresent()

isPresent (obj) Booleanpublic Defined in packages/ember-metal/lib/is_present.js:3 Available since 1.8.0 A value is present if it not isBlank. Ember.isPresent(); // false Ember.isPresent(null); // false Ember.isPresent(undefined); // false Ember.isPresent(''); // false Ember.isPresent(' '); // false Ember.isPresent('\n\t'); // false Ember.isPresent([]); // false Ember.isPresent({ length: 0 }) // false Ember.isP

ComputedProperty#volatile()

volatileEmber.ComputedPropertypublic Defined in packages/ember-metal/lib/computed.js:165 Call on a computed property to set it into non-cached mode. When in this mode the computed property will not automatically cache the return value. It also does not automatically fire any change events. You must manually notify any changes if you want to observe this property. Dependency keys have no effect on volatile properties as they are for cache invalidation and notification when cached value is in

DefaultResolver#parseName()

parseName (fullName) protected Defined in packages/ember-application/lib/system/resolver.js:197 Convert the string name of the form 'type:name' to a Javascript object with the parsed aspects of the name broken out. Parameters: fullName String the lookup string

Test#currentURL()

currentURLObjectpublic Defined in packages/ember-testing/lib/helpers.js:187 Available since 1.5.0 Returns the current URL. Example: function validateURL() { equal(currentURL(), '/some/path', "correct URL was transitioned into."); } click('#some-link-id').then(validateURL); Returns: Object The currently active URL.

Objects in Ember

Objects in Ember You'll notice standard JavaScript class patterns and the new ES2015 classes aren't widely used in Ember. Plain objects can still be found, and sometimes they're referred to as "hashes". JavaScript objects don't support the observation of property value changes. Consequently, if an object is going to participate in Ember's binding system you may see an Ember.Object instead of a plain object. Ember.Object also provides a class system, supporting features like mixins and constru

DS.Adapter#query()

query (store, type, query, recordArray) Promise Defined in addon/adapter.js:154 This method is called when you call query on the store. Example app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ query: function(store, type, query) { return new Ember.RSVP.Promise(function(resolve, reject) { Ember.$.getJSON(`/${type.modelName}`, query).then(function(data) { resolve(data); }, function(jqXHR) { reject(jqXHR); });