angularjs-daterangepicker
v1.1.5
Published
Date Range picker for angualrjs
Downloads
1,481
Maintainers
Readme
angularjs-daterangepicker
Impl for Date Range Picker
Installation
npm install angularjs-daterangepicker
bower install angularjs-daterangepicker
Usage
$scope.options = {
locale: {cancelLabel: 'Clear'},
showDropdowns: true
};
$scope.startDate = moment();
$scope.endDate = moment();
<form name="test">
<div>
<input date-range-picker="t1"
start-date="startDate"
end-date="endDate"
placeholder="select"
data-ng-required="true"
date-range-picker-options="options"
clear-on-cancel="true"
class="form-control">
<button class="btn btn-default" data-ng-disabled="!test.$valid">Test</button>
</div>
</form>
{{startDate}} - {{endDate}}