diegopamio / angular-sails-bind

An angular service to bind scope models to sailsjs models thru socket
MIT License
136 stars 25 forks source link

$scope.$watchCollection not implemented in Angular 1.0.8 #16

Open talss89 opened 10 years ago

talss89 commented 10 years ago

I've hacked a fix using the deep watch syntax in my controller:

$scope.$watchCollection = function(variable, cb) {
    return $scope.$watch(variable, cb, true);
};

Could we replace $watchCollection with $watch(resourceName + "s", callback, true)?

diegopamio commented 9 years ago

Why are you using a so-old angular lib?