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

Using ng-change to run a function when a date is selected #42

Closed
Aaron-Hartwig opened this issue Sep 18, 2015 · 3 comments
Closed

Using ng-change to run a function when a date is selected #42

Aaron-Hartwig opened this issue Sep 18, 2015 · 3 comments

Comments

@Aaron-Hartwig
Copy link
Contributor

I'm trying to do some validation on the client when a user selects a date. I put that function in an ng-change on the <mb-datepicker> element and get the following error Error: [$compile:ctreq] Controller 'ngModel', required by directive 'ngChange', can't be found!. Is there a work for doing 'on change' logic?

@mobinni
Copy link
Owner

mobinni commented Sep 18, 2015

Currently, if you want to go outside the basic interaction you have to copy the directive locally and add your attributes to the template.

@Aaron-Hartwig
Copy link
Contributor Author

Ok. @mobinni thank you for the quick response :)

@mobinni
Copy link
Owner

mobinni commented Sep 23, 2015

No problem mate!

@mobinni mobinni closed this as completed Sep 23, 2015
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