DS.Snapshot#changedAttributes()

changedAttributesObject

Defined in addon/-private/system/snapshot.js:135

Returns all changed attributes and their old and new values.

Example

// store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });
postModel.set('title', 'Ember.js rocks!');
postSnapshot.changedAttributes(); // => { title: ['Ember.js rocks', 'Ember.js rocks!'] }

Returns:

Object
All changed attributes of the current snapshot
doc_EmberJs
2016-11-30 16:50:42
Comments
Leave a Comment

Please login to continue.