Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Timepicker directive: Is it possible to use ng-change or ng-click? #785

Closed
EverybodyKurts opened this issue Aug 7, 2013 · 1 comment
Closed

Comments

@EverybodyKurts
Copy link

Hello everybody,

I'm using the timepicker directive inside an ng-repeat command. I'm wondering if its possible to use the ng-change or ng-click directives within them, so whenever a user clicks any of the arrows, the expression/function I have attached to either two directives are evaluated.

Below is my code sample:

<timepicker
    ng-model="rental_date.start_time"
    ng-click='timeChange($index)'
    minute-step="15"
 />

Thanks for any help!

@bekos
Copy link
Contributor

bekos commented Aug 7, 2013

Hi @KurtRMueller.

Not atm. I hope our next version will include this possibility.
For now, you can $watch the model in your controller. I hope this helps.

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

Successfully merging a pull request may close this issue.

2 participants