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

Setting ng-model $dirty when value changes #107

Open
jmkenz opened this issue Jul 5, 2016 · 1 comment
Open

Setting ng-model $dirty when value changes #107

jmkenz opened this issue Jul 5, 2016 · 1 comment

Comments

@jmkenz
Copy link

jmkenz commented Jul 5, 2016

I wasn't able to find a configuration option to enable this, so I've written my own decorator directive to fit the bill:

jmkenz/angularMultiSelectDirty.js

Is this how you would have handled it? Should this be built into your core directive?

@alexandernst
Copy link
Owner

This library doesn't quite work as the other "usual" input libraries. This library has an input model (that shouldn't be changed from the library) and an output model (that should be changed form the library).

If your code works for you, I'm glad, but if I'd accept something like that, it should be focused on marking the output model as dirty, not the input model.

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

2 participants