DS.Snapshot#eachRelationship()

eachRelationship (callback, binding)

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

Iterates through all the relationships of the model, calling the passed function on each relationship.

Example

snapshot.eachRelationship(function(name, relationship) {
  // ...
});

Parameters:

callback Function
the callback to execute
binding [Object]
the value to which the callback's `this` should be bound
doc_EmberJs
2016-11-30 16:50:42
Comments
Leave a Comment

Please login to continue.