- Angular v1.2+
Checkout, run npm install
and bower install
.
To build run grunt build
Install with bower bower install --save angular-datepicker
Inject the dependency angular.module('testApp', ['datePicker'])
<div date-picker="start"></div>
(initial) view
<div date-picker="start" view="year"></div>
(max) view
<div date-picker="start" max-view="month"></div>
(min) view
<div date-picker="start" min-view="date"></div>
<div date-picker="start" auto-close="true"></div>
Only add's validation to ngModel, must be provided a valid date object or valid date string.
<div date-picker="start" min-date="Date string | Expression" max-date="Date string | Expression"></div>
<input type="datetime" date-time ng-model="start">
<input type="datetime" date-time ng-model="end" format="short">
<div date-range start="start" end="end"></div>
After a new distribution package has been pushed, a new release can be triggered with grunt-bump :
grunt bump
You can see what the release process will do by doing a dry run :
grunt bump --dry-run