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

Support for ngModel #13

Open
philonor opened this issue May 11, 2016 · 0 comments
Open

Support for ngModel #13

philonor opened this issue May 11, 2016 · 0 comments

Comments

@philonor
Copy link

Currently, changed values can only be recognized using a value-changed callback.
Implement a ng-model binding to allow:

<fancy-select ng-model="data"/>

with data being e.g.:

{value: [], possibleValues: [{caption: "Option A", id: 5}, {caption: "Option B", id: 7}]}

and internally doing e.g.:
scope.items=data.possibleValues
scope.value=data.value

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

1 participant