Skip to main content
deleted 48 characters in body
Source Link
Mohan P
  • 422
  • 3
  • 16
<script>
$(function() {
          $('#time').timepicker({change: function(time) {
            // the input field
             $scope.time = time;
             if (!$scope.$$phase) $scope.$apply();
        }});
          $('#time1').timepicker({change: function(time) {
            // the input field
             $scope.time1 = time;
             if (!$scope.$$phase) $scope.$apply();
        }});
    });
<script>   

You need to put this code in angular js controller to set values in model instead of putting in HTML.

<script>
$(function() {
          $('#time').timepicker(change: function(time) {
            // the input field
             $scope.time = time;
             if (!$scope.$$phase) $scope.$apply();
        });
          $('#time1').timepicker(change: function(time) {
            // the input field
             $scope.time1 = time;
             if (!$scope.$$phase) $scope.$apply();
        });
    });
<script>   

You need to put this code in angular js controller to set values in model instead of putting in HTML.

<script>
$(function() {
    $('#time').timepicker({change: function(time) {
        // the input field
        $scope.time = time;
        if (!$scope.$$phase) $scope.$apply();
    }});
    $('#time1').timepicker({change: function(time) {
        // the input field
        $scope.time1 = time;
        if (!$scope.$$phase) $scope.$apply();
    }});
});
<script>   

You need to put this code in angular js controller to set values in model instead of putting in HTML.

Source Link
Mohan P
  • 422
  • 3
  • 16

<script>
$(function() {
          $('#time').timepicker(change: function(time) {
            // the input field
             $scope.time = time;
             if (!$scope.$$phase) $scope.$apply();
        });
          $('#time1').timepicker(change: function(time) {
            // the input field
             $scope.time1 = time;
             if (!$scope.$$phase) $scope.$apply();
        });
    });
<script>   

You need to put this code in angular js controller to set values in model instead of putting in HTML.