angularjs-date-picker
Yet another date picker for Angularjs.
Installation
Install from npm:
npm install angularjs-date-picker
Usage
Prerequisites
Your app must include moment, angular and bootstrap (which will also require Jquery) before the date picker will render correctly.
Add them to your index.html:
Additionally, you must add the directive source files:
Using the directive
Include the date picker module as a dependency in your module:
angular
Then use the tag in html controlled by that controller:
Date Picker Attributes
The only exposed event is when a date is selected. Add the attribute onDateSelected
to the html tag:
onDateSelected
takes a function with the input parameter of a Moment object. Your outer function passed to the directive could look like this:
{ var currentDate = date; }