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

attach to existing ng-model #27

Open
geemang2000 opened this issue Nov 5, 2016 · 1 comment
Open

attach to existing ng-model #27

geemang2000 opened this issue Nov 5, 2016 · 1 comment

Comments

@geemang2000
Copy link

Unless I'm missing something, it would be very helpful if this control supported a ng-model attribute. Where your control would update the model when the slider changes. Perhaps use this instead of the "start" attribute in the options.

My app has an existing model e.g. app.maxFileSize

It seems I have to capture on change events and update my model accordingly.
Is this correct?

BTW: nice work on this library!

@geemang2000 geemang2000 changed the title attach to ng-model attach to existing ng-model Nov 5, 2016
@Yankovsky
Copy link
Owner

@geemang2000 ng-model has its limitations. I've tried to build this directive using it at first. It was a long time ago but I think the problem was that the value could be an array, not just a number.

Anyway directive uses two-way binding and as you can see in examples value passed in start updates automagically.

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