Hi Michael,

I noticed the $scope.$apply in your directive. It does what you think, but 
it also refreshes every binding in your page, which may be very costly. As 
you have an ngModel, you don’t need it at all. I updated your fiddle 
<http://jsfiddle.net/jdz0vvkv/3/>a bit to show you how to use 
ngModelController.$setViewValue(). This is much better, as it updates only 
the value at hand, and will not trigger a full $digest. 

Hope this helps you a bit,
Regards
Sander
​

-- 
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