I'm using angular js to handle the processing of data on my form. It uses ng-keyup to listen to changes to the input values, and display messages as a result.
To enter their date of birth, the user can either type directly into three text boxes or use a jquery plugin called pickaday, which allows the user to pick a date and then writes the date out to the three text boxes. Since I can add the ng-keyup attribute to the text boxes, processing of the date of birth is straightforward if the user types it rather than using the pickaday plugin.
The initialisation script of the pickaday plugin allows you to specify a callback function for whenever the user chooses a date. I need to somehow get this callback to run the code in my controller, so that the same code runs when the user picks a date from the plugin as if he had typed it in.
Is there a way I can do this?
NB: I tried simply using ng-change rather than ng-keyup for the three text boxes, hoping that ng-change would pick up on changes to the text boxes made by the pickaday plugin, but that didn't work. :(