goinstant / goangular

AngularJS bindings for GoInstant. Build realtime, multi-user apps with AngularJS and GoInstant easily. https://developers.goinstant.com/v1/GoAngular/index.html
BSD 3-Clause "New" or "Revised" License
137 stars 30 forks source link

model.$sync syncs the model as if it's the root key #64

Closed colinmacdonald closed 10 years ago

colinmacdonald commented 10 years ago
var rootKey = $goKey('root');
rootKey.$key('test').$set('foo');

var myKey = rootKey.$key('myKey');

// syncs the model with `test` and `myKey` properties instead of just 
// the children of `myKey`.
myKey.$sync()