NgChange
Hi,
Great job! I have a question about ng-change, this was implemented?
Nope, not yet.
Would happily merge a pull request for it.
As a workaround, use a scope watch on the variable that you use in the ng-model field.
Err wait, this might just work automatically. Have you tried it?
Yes, I try it, but don't work.
Yeh that s not working, Must needde feature
Not yet?
You can add this:
controller.$viewChangeListeners.push(function() { scope.$eval(attrs.ngChange); });
When you detect changes in select2, right in the $timeout callback. It worked for me. Great work, you saved my life!
This is working with Angular 1.4.9 and angular-select2 1.5.2. I'm using it normally here, also with all other ng-directives associated with input elements.