Hi Sander...

 thank you for the quick reply and the hint with controllerAs.

Actually rather than using var foo instead of $scope.foo what I was 
wondering about was:
if scope-bound data is watched and triggers updates on changes, then 
something like
{{toPercent(myVar)}} might not work as angular has to correctly find out 
about the myVar arg being a scope model (let alone a {{myVarAsPercent()}} 
function call). 
When investigating this I accidentally found out that even the code in my 
first post updates the UI which is not 
explainable in the usual way (a scope variable is watched for changes).

It rather seems to me that on any digest just everything is re-rendered 
(which I did not expect). 
If not, I would need two scope models like $scope.myVar and 
$scope.myVarAsPercent with {{myVarAsPercent}} instead of 
{{toPercent(myVar))}} for UI updates to be triggered by angular watch 
mechanism, or?

Ciao

…Jochen


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to