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.
<divclass='input-group date datetimepicker-2'><inputtype='text'class="form-control"name="FromTime"ng-init="FromTime = myDate"ng-model="FromTime"placeholder="From Time" /><spanclass="input-group-addon"><iclass="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"