Angular Support in JQuery TimePicker widget

8 Aug 20175 minutes to read

TimePicker widget is availed with two types of AngularJS support namely,

  • One way binding
  • Two way binding

One way binding refers to the process of applying scope values to all the available properties of the TimePicker widget where the changes made in the widget is not reflected or triggered in turn to the scope collection. This kind of binding applies to all the properties of the TimePicker widget.

Two-way binding supports both the processes – it applies the scope values to the TimePicker properties as well as the changes made in the widget is also reflected back and triggered within the AngularJS scope change function.

Apply the plugin and property assigning to the TimePicker widget element through the directive that starts with a letter “e-“.

To know more details about AngularJS binding, refer the following link location,

The following code example depicts you the way to bind data to the TimePicker widget through AngularJS support,

  • HTML
  • <html ng-app="TimeCtrl">
        <title>Essential Studio for JavaScript : Timepicker AngularJS</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8" />
        <link href="" rel="stylesheet" />
        <script src=""></script>
        <script src=""></script>
        <script src=""></script>
        <script src=""></script>
        <script src=""> </script>
    <body ng-controller="TimePickerCtrl">
        <div class="content-container-fluid">
            <div class="row">
                <div class="cols-sample-area">
                    <div class="frame" style="width: 30%; height: 17px;">
                        <div id="control" style="float: left;width: 45%;">
                            <input id="time" type="text" ej-timepicker e-value="timePickerValue" />
                            <h6><span style="font-style: italic; font-weight: normal; position: absolute; margin-top: 5px;">Note:Two Way AngularJS Support</span></h6>
                        <div id="binding" style=" float: right;width: 45%;">
                            <input id="timectrl" type="text" ej-timepicker e-value="timePickerValue" e-interval="10" />
        <script type="text/javascript">
            angular.module('TimeCtrl', ['ejangular'])
                   .controller('TimePickerCtrl', function ($scope) {
                       $scope.timePickerValue = "12:50 AM";
        <style type="text/css" class="cssStyles">
            .control {
                margin: 0 auto;
                width: 136px;
            #time_timeWidget, #timectrl_timeWidget {
                width: 84%;
            #timeValue {
                text-indent: 10px;


    jQuery.easing external dependency has been removed from version onwards. Kindly include this jQuery.easing dependency for versions lesser than in order to support animation effects.

    Execute the above code to render the following output.