Ember.assign()

assign (original, args) Objectpublic Defined in packages/ember-metal/lib/assign.js:1 Copy properties from a source object to a target object. var a = { first: 'Yehuda' }; var b = { last: 'Katz' }; var c = { company: 'Tilde Inc.' }; Ember.assign(a, b, c); // a === { first: 'Yehuda', last: 'Katz', company: 'Tilde Inc.' }, b === { last: 'Katz' }, c === { company: 'Tilde Inc.' } Parameters: original Object The object to assign into args Object The objects to copy properties from Re

DataAdapter#acceptsModelName

acceptsModelNamepublic Defined in packages/ember-extension-support/lib/data_adapter.js:91 Ember Data > v1.0.0-beta.18 requires string model names to be passed around instead of the actual factories. This is a stamp for the Ember Inspector to differentiate between the versions to be able to support older versions too.

Enumerable#every()

every (callback, target) Booleanpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:556 Returns true if the passed function returns true for every item in the enumeration. This corresponds with the every() method in JavaScript 1.6. The callback method you provide should have the following signature (all parameters are optional): function(item, index, enumerable); item is the current item in the iteration. index is the current index in the iteration. enumerable is the enume

String#capitalize()

capitalize (str) Stringpublic Defined in packages/ember-runtime/lib/system/string.js:319 Returns the Capitalized form of a string 'innerHTML'.capitalize() // 'InnerHTML' 'action_name'.capitalize() // 'Action_name' 'css-class-name'.capitalize() // 'Css-class-name' 'my favorite items'.capitalize() // 'My favorite items' 'privateDocs/ownerInvoice'.capitalize(); // 'PrivateDocs/ownerInvoice' Parameters: str String The string to capitalize. Returns: String The capita

ComputedProperty#readOnly()

readOnlyEmber.ComputedPropertypublic Defined in packages/ember-metal/lib/computed.js:193 Call on a computed property to set it into read-only mode. When in this mode the computed property will throw an error when set. let Person = Ember.Object.extend({ guid: Ember.computed(function() { return 'guid-guid-guid'; }).readOnly() }); let person = Person.create(); person.set('guid', 'new-guid'); // will throw an exception Returns: Ember.ComputedProperty this

Specifying the URL Type

Specifying the URL Type The Ember router has four options to manage your application's URL: history, which uses the HTML5 History API; hash, which uses anchor-based URLs; auto, which uses history if supported by the user's browser, and falls back to hash otherwise; and none, which doesn't update the URL. By default, Ember CLI configures the router to use auto. You can change this option in config/environment.js under ENV.locationType. history When using history, Ember uses the browser's histo

Ember.run.schedule()

schedule (queue, target, method, arguments*) *public Defined in packages/ember-metal/lib/run_loop.js:230 Adds the passed target/method and any optional arguments to the named queue to be executed at the end of the RunLoop. If you have not already started a RunLoop when calling this method one will be started for you automatically. At the end of a RunLoop, any methods scheduled in this way will be invoked. Methods will be invoked in an order matching the named queues defined in the run.queue

DS.RESTAdapter#isSuccess()

isSuccess (status, headers, payload) Boolean Defined in addon/adapters/rest.js:945 Available since 1.13.0 Default handleResponse implementation uses this hook to decide if the response is a success. Parameters: status Number headers Object payload Object Returns: Boolean

Ember.setOwner()

setOwner (object) Objectpublic Defined in packages/container/lib/owner.js:54 Available since 2.3.0 setOwner forces a new owner on a given object instance. This is primarily useful in some testing cases. Parameters: object Object An object with an owner. Returns: Object An owner object.

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