DS.Store#adapterFor()

adapterFor (modelName) public

Defined in addon/-private/system/store.js:2369

Returns an instance of the adapter for a given type. For example, adapterFor('person') will return an instance of App.PersonAdapter.

If no App.PersonAdapter is found, this method will look for an App.ApplicationAdapter (the default adapter for your entire application).

If no App.ApplicationAdapter is found, it will return the value of the defaultAdapter.

Parameters:

modelName String

Returns:

DS.Adapter
doc_EmberJs
2016-11-30 16:50:46
Comments
Leave a Comment

Please login to continue.