Based on a bunch of Angular JS style guides I've read recently, it seems that the 'controller as' syntax for Angular JS controllers is preferred for several reasons.
I've seen examples of how to inject $scope in order to use special methods like $watch, $on, etc.
This example below shows how to successfully use $watch with the 'controller as' syntax:
$scope.$watch(angular.bind(this, function () {
return this.name;
}), function(value) {
console.log('Name change to ' + value);
});
What I haven't found anywhere is how to use $watchGroup using this similar approach. Does anyone know how to do this?
$scope.$watchGroup