I need to use Bootstrap TimePicker with AngularJS. I am new to AngularJS.
I have edit option for end date. on edit timepicker is shown but not working in AngularJS.
HTML:
<div class="col-md-3">
<label>End Time</label>
<span ng-hide="editingViewActivityForm">{{actDetailsData.endTime | date: 'shortTime'}}</span>
<div ng-show="editingViewActivityForm" class="input-group bootstrap-timepicker timepicker">
<input id="timepicker1" ng-model="actDetailsData.endTime" type="text" class="form-control input-small">
<span class="input-group-addon" ng-click="openTime()">
<i class="glyphicon glyphicon-time"></i></span>
</div>
</div>
Controller:
angular.element(document).ready(function () {
angular.element('#timepicker1').timepicker();
});
you can use
ui-bootstrapinstead ofbootstrap.at first download ui bootstrap then add ui bootstrap script and css link to your project .then add
ui.bootstrapto your moduleand at the end add datepicker like this :
ui bootstrap datepicker in github