Pure Angular Datepicker, without jQuery
Install
bower install angular-date-range-picker
Usage
// require dateRangePicker module as dependencyangular;
// specify default date range in controller$scopedates =
<!-- use 'date-range-picker' directive in view -->
Customizations
Simple date picker
You can also select only one date:
<!-- use 'date-range-picker' directive in view -->
Select range options
$scoperangeSelectOptions = label: "This year" range: label: "Last year" range:
Angular version compatibility table
Due to usage of track by $index
it is impossible to provide one version for both angular < 1.2
and >= 1.2
.
Angular version | date-range-picker version |
---|---|
1.2.x | 0.3.x |
1.1.x | 0.2.x |
1.0.x | 0.2.x |
Development
npm installbower installgrunt watchopen test/index.html
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request