angularjs-daterangepicker

1.1.5 • Public • Published

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}}

Package Sidebar

Install

npm i angularjs-daterangepicker

Weekly Downloads

378

Version

1.1.5

License

MIT

Last publish

Collaborators

  • emalikterzi