Hi,
You are right. This is because of $scope.$apply That’s the reason you should use it as sparingly as possible. an $apply will make sure that every watch in your application is fired at least once. The reason is, that in your eventBCallback you might have changed something that otherwise might get unnoticed, (lets assume you add a new module to the modules array (yeah I know that isn't easy possible,but angular does not!)) and therefore the filters need too be fired also. If you are really sure that what you are doing in your evenBCallback does not affect other places, but indeed only the local scope, you can sue $scope.$digest() in stead of $scope.$apply, but you better be sure you know what you are doing! 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.
