[AngularJS] Notifying $viewChangeListener subscribers on ngModel change.

2014-08-18 Thread Daniel Ortega
Hi everyone, I've just run into a problem when developing a custom directive using the ngModel Controller. I'm adding a custom function to the $viewChangeListeners list so I get notified whenever the value changes, and everything was working fine until I manually changed the value of the ngMod

[AngularJS] Re: Notifying $viewChangeListener subscribers on ngModel change.

2014-08-19 Thread Daniel Ortega
Hi Alex, I can't see how that would make the $viewChangeListeners subscribers to be called as the code inside ngModelController is missing those calls. Anyway, I just wrapped my code inside the usual block to call $digest or $apply if not in $$pashe and had the same result. I can make my code