Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NgChange #10

Open
oaugustus opened this issue Jan 22, 2015 · 7 comments
Open

NgChange #10

oaugustus opened this issue Jan 22, 2015 · 7 comments

Comments

@oaugustus
Copy link

Hi,

Great job! I have a question about ng-change, this was implemented?

@rubenv
Copy link
Owner

rubenv commented Jan 22, 2015

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.

@rubenv
Copy link
Owner

rubenv commented Jan 22, 2015

Err wait, this might just work automatically. Have you tried it?

@oaugustus
Copy link
Author

Yes, I try it, but don't work.

@tushar-borole
Copy link

Yeh that s not working, Must needde feature

@tushar-borole
Copy link

Not yet?

@xtiam57
Copy link

xtiam57 commented Apr 27, 2015

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!

@mateusleon
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants