“Angular-ui bootstrap”を使用して、Bootstrap3のJavaScript部分をAngularJSに置き換えることができます。今回はdatepickerのサンプルを作成しました。
※オンラインマニュアル
Angular directives for Bootstrap
Angular-ui bootstrap : 2.5.0
AngularJS : 1.6.5
Bootstrap : 3.3.7
Inline
選択した日付: {{dt | date:'yyyy-MM-dd' }}
<!DOCTYPE html>
<html ng-app="demoApp">
<head>
......
<script src="../js/angular-1.6.5.min.js"></script>
<script src="../js/ui-bootstrap-tpls-2.5.0.min.js"></script>
<link href="../js/app.js">
<link href="../css/bootstrap-3.3.7.min.css" rel="stylesheet">
</head>
.....
<div ng-controller="DatepickerDemoCtrl">
<h4>Inline</h4>
<div style="display:inline-block; min-height:290px;">
<div uib-datepicker ng-model="dt" datepicker-options="options"
class="well well-sm">
</div>
</div>
<pre>選択した日付: <em>{{dt | date:'yyyy-MM-dd' }}</em></pre>
</div>
var demoApp = angular.module('demoApp', ['ui.bootstrap']);
demoApp.controller("DatepickerDemoCtrl", function($scope) {
$scope.dt = new Date();
$scope.options = {
showWeeks: false,
formatDay: 'dd',
formatMonth: 'MM',
formatYear: 'yyyy',
formatDayHeader: 'EEE',
formatDayTitle: 'yyyy/MM',
formatMonthTitle:'yyyy'
};
});