angular2-daterangepicker
A simple Angular 2 directive that wraps the Bootstrap daterangepicker found at http://www.daterangepicker.com/. To use this directive, you must include jQuery, momentJS, and Bootstrap CSS.
Installing
To install as an NPM package, run npm install --save angular2-daterangepicker
. Make sure to include the provided css file.
Usage
Create a new component, import and declare the directive in your module.
In your template, use daterangepicker
as an attribute on an input
element. There is one input binding of options
that expects an object of any options available at http://www.daterangepicker.com/#options.