If I were to create a $watch
expression like:
$scope.$watch(function(){
return(MyDataStore.someInstanceVariable);}
, function(newVal, oldVal){
$scope.scopeVariable = newVal;}
, true)
How often would this function execute? How often would it poll the data store? Just how (in)efficient is this approach?