eachRelationship (callback, binding)
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
Please login to continue.