MutableEnumerable#removeObject()

removeObject (object) Objectpublic Defined in packages/ember-runtime/lib/mixins/mutable_enumerable.js:84 Required. You must implement this method to apply this mixin. Attempts to remove the passed object from the receiver collection if the object is present in the collection. If the object is not present, this method has no effect. If the passed object is of a type not supported by the receiver, then this method should raise an exception. Parameters: object Object The object to remove

Ember.run.cancel()

cancel (timer) Booleanpublic Defined in packages/ember-metal/lib/run_loop.js:493 Cancels a scheduled item. Must be a value returned by run.later(), run.once(), run.scheduleOnce(), run.next(), run.debounce(), or run.throttle(). let runNext = run.next(myContext, function() { // will not be executed }); run.cancel(runNext); let runLater = run.later(myContext, function() { // will not be executed }, 500); run.cancel(runLater); let runScheduleOnce = run.scheduleOnce('afterRender', myCont

CoreObject#mergedProperties

mergedPropertiesArraypublic Defined in packages/ember-runtime/lib/system/core_object.js:324 Defines the properties that will be merged from the superclass (instead of overridden). By default, when you extend an Ember class a property defined in the subclass overrides a property with the same name that is defined in the superclass. However, there are some cases where it is preferable to build up a property's value by merging the superclass property value with the subclass property's value. A

DS.Model#isEmpty

isEmpty{Boolean} Defined in addon/-private/system/model/model.js:54 If this property is true the record is in the empty state. Empty is the first state all records enter after they have been created. Most records created by the store will quickly transition to the loading state if data needs to be fetched from the server or the created state if the record is created on the client. A record can also enter the empty state if the adapter is unable to locate the record.

DS.JSONAPISerializer#extractAttributes()

extractAttributes (modelClass, resourceHash) Object Inherited from DS.JSONSerializer but overwritten in addon/serializers/json-api.js:253 Parameters: modelClass DS.Model resourceHash Object Returns: Object

DS.Model#reload()

reloadPromise Defined in addon/-private/system/model/model.js:750 Reload the record from the adapter. This will only work if the record has already finished loading. Example app/routes/model/view.js import Ember from 'ember'; export default Ember.Route.extend({ actions: { reload: function() { this.controller.get('model').reload().then(function(model) { // do something with the reloaded model }); } } }); Returns: Promise a promise that will be resolved

HTMLBars#makeBoundHelper()

makeBoundHelper (fn) private Defined in packages/ember-htmlbars/lib/make-bound-helper.js:8 Available since 1.10.0 Create a bound helper. Accepts a function that receives the ordered and hash parameters from the template. If a bound property was provided in the template, it will be resolved to its value and any changes to the bound property cause the helper function to be re-run with the updated values. params - An array of resolved ordered parameters. hash - An object containing the hash

DS.ManyArray#meta

metaObjectpublic Defined in addon/-private/system/many-array.js:124 Metadata associated with the request for async hasMany relationships. Example Given that the server returns the following JSON payload when fetching a hasMany relationship: { "comments": [{ "id": 1, "comment": "This is the first comment", }, { // ... }], "meta": { "page": 1, "total": 5 } } You can then access the metadata via the meta property: post.get('comments').then(function(comments) {

DataAdapter#getRecordKeywords()

getRecordKeywordsArrayprivate Defined in packages/ember-extension-support/lib/data_adapter.js:447 Returns keywords to match when searching records. Returns: Array Relevant keywords for search.

Routing

Introduction Imagine we are writing a web app for managing a blog. At any given time, we should be able to answer questions like What post are they looking at? and Are they editing it? In Ember.js, the answer to these questions is determined by the URL. The URL can be set in a few ways: The user loads the app for the first time. The user changes the URL manually, such as by clicking the back button or by editing the address bar. The user clicks a link within the app. Some other event in the a