reloadPromise
Reload the record from the adapter.
This will only work if the record has already finished loading.
Example
app/routes/model/view.jsimport 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 with the record when the adapter returns successfully or rejected if the adapter returns with an error.
Please login to continue.