angular-bootstrap-datepicker - AngularJS directives for the bootstrap-datepicker
At the moment, only the "Component" type is supported.
Installation is easy, jQuery, AngularJS and Bootstrap's JS/CSS are required.
You can download angular-bootstrap-datepicker via bower:
bower install https://github.com/ezimnitskiy/angular-bootstrap-datepicker.git
When you are done downloading all the dependencies and project files the only remaining part is to add dependencies as an AngularJS module:
angular.module('myModule', ['ui-bootstrap-datepicker']);
You also need to include these files:
<link rel="stylesheet" href="bootstrap/css/bootstrap.css" />
<link rel="stylesheet" href="angular-bootstrap-datepicker.css" />
<script src="jquery.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
<script src="angular.js"></script>
<script src="angular-bootstrap-datepicker.js" charset="utf-8"></script>
Make sure you use charset="utf-8"
in your script tag if your browser (or those of your users) is displaying characters wrong when using another language.
To use the directive, use the following code :
<input type="text" ui-datepicker ui-datepicker-options="datepickerOptions" />
ui-datepicker
: Indicates you want your input as a date picker.
ui-datepicker-options
: Object of the controller scope containing the options for your date picker.