Most likely, you'll find that
ngModel is the most common controller you'll require within your code. Any time you want to create a custom input, or even just bind an input plugin that requires specific formatting,
ngModel provides the methods you'll need to coordinate communication between the plugin and your data model.
With that in mind, let's walk through the process of creating an input for time values that utilizes the handy timepicker jQuery plugin provided by Jon Thornton. Our goal is to be able to turn a regular text field input into a timepicker that displays its value in the format
HH:mm but stores it in our data property in milliseconds.
For this example, our HTML is once again pretty simple, ...