You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need support for the ng-change attribute. Right now I'm using $scope.$watch to process changes in the ng-model value, but it doesn't seem like the right thing to do. Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
I'm not an Angular wizard and I haven't used it in a while, but my understanding of $scope.$watch is that it's used to be triggered when something is updated, and in this case it's exactly what you want.
Thanks for the reply. My point is that it actually seems more appropriate to have an ng-change method rather than having to manually register a watcher, specially since the directive - in my eyes - should work just like a regular angular input.
The watcher will do for now, it's just a matter of convenience 😄
I need support for the ng-change attribute. Right now I'm using $scope.$watch to process changes in the ng-model value, but it doesn't seem like the right thing to do. Am I doing something wrong?
The text was updated successfully, but these errors were encountered: