DS.RecordArray#removeInternalModel()

removeInternalModel (internalModel) private Defined in addon/-private/system/record-arrays/record-array.js:159 Removes an internalModel to the RecordArray. Parameters: internalModel InternalModel

Route#redirect()

redirect (model, transition) public Defined in packages/ember-routing/lib/system/route.js:1368 A hook you can implement to optionally redirect to another route. If you call this.transitionTo from inside of this hook, this route will not be entered in favor of the other hook. redirect and afterModel behave very similarly and are called almost at the same time, but they have an important distinction in the case that, from one of these hooks, a redirect into a child route of this route occurs:

DS.Model#hasMany()

hasMany (name) HasManyReference Defined in addon/-private/system/model/model.js:883 Available since 2.5.0 Get the reference for the specified hasMany relationship. Example // models/blog.js export default DS.Model.extend({ comments: DS.hasMany({ async: true }) }); var blog = store.push({ type: 'blog', id: 1, relationships: { comments: { data: [ { type: 'comment', id: 1 }, { type: 'comment', id: 2 } ] } } }); var commentsRef = blog.hasMany('comm

Application#visit()

visit (url, options) Promisepublic Defined in packages/ember-application/lib/system/application.js:777 Boot a new instance of Ember.ApplicationInstance for the current application and navigate it to the given url. Returns a Promise that resolves with the instance when the initial routing and rendering is complete, or rejects with any error that occured during the boot process. When autoboot is disabled, calling visit would first cause the application to boot, which runs the application init

DS.RootState

DS.RootState Class Defined in: addon/-private/system/model/states.js:12 Module: ember-data State Each record has a currentState property that explicitly tracks what state a record is in at any given time. For instance, if a record is newly created and has not yet been sent to the adapter to be saved, it would be in the root.loaded.created.uncommitted state. If a record has had local modifications made to it that are in the process of being saved, the record would be in the root.loaded.upda

DS.Snapshot#type

type{DS.Model} Defined in addon/-private/system/snapshot.js:78 The type of the underlying record for this snapshot, as a DS.Model.

DS.Store#findRecord()

findRecord (modelName, id, options) Promise Defined in addon/-private/system/store.js:461 Available since 1.13.0 This method returns a record for a given type and id combination. The findRecord method will always resolve its promise with the same object for a given type and id. The findRecord method will always return a promise that will be resolved with the record. Example app/routes/post.js import Ember from 'ember'; export default Ember.Route.extend({ model: function(params) { ret

Application#boot()

bootPromiseprivate Defined in packages/ember-application/lib/system/application.js:541 Initialize the application and return a promise that resolves with the Ember.Application object when the boot process is complete. Run any application initializers and run the application load hook. These hooks may choose to defer readiness. For example, an authentication hook might want to defer readiness until the auth token has been retrieved. By default, this method is called automatically on "DOM rea

DS.Errors#_add()

_addprivate Defined in addon/-private/system/model/errors.js:241 Adds error messages to a given attribute without sending event.

The Run Loop

The Run Loop Ember's internals and most of the code you will write in your applications takes place in a run loop. The run loop is used to batch, and order (or reorder) work in a way that is most effective and efficient. It does so by scheduling work on specific queues. These queues have a priority, and are processed to completion in priority order. For basic Ember app development scenarios, you don't need to understand the run loop or use it directly. All common paths are paved nicely for yo