AngularJS Time In Ng-model Value Not Pass To Controller
when i click CheckTime button Time value doesnot pass to controller
is not the correct way to assign value to FromTime. If you want to initialize FromTime with specific date then take a variable and assign it a date and then use it in ng-init.
is not the correct way to assign value to FromTime. If you want to initialize FromTime with specific date then take a variable and assign it a date and then use it in ng-init.
<div class='input-group date datetimepicker-2'>
<input type='text' class="form-control" name="FromTime" ng-init="FromTime = myDate" ng-model="FromTime" placeholder="From Time" />
<span class="input-group-addon">
<i class="font-icon font-icon-clock"></i>
</span>
</div>
In Controller,
$scope.myDate = new Date();
$scope.FromTime =null;
Post a Comment for "AngularJS Time In Ng-model Value Not Pass To Controller"