angularjs-daterangepicker

Date Range picker for angualrjs

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
angularjs-daterangepicker
421.1.55 years ago6 years agoMinified + gzip package size for angularjs-daterangepicker in KB

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}}
[Date Range Picker]: <http://www.daterangepicker.com>