ng-flatpicker
Angularjs directive for flatpickr.Pleas do the following to use ng-flatpicker
.
- just add
ng-flatpicker
to your input.Default dateformat isY-m-d
. - You can specify alot of options. To do that just add
options
attribute object in your element.
Prerequires
Before installation you must to include flatpickr to your project.
Installation
Install with npm
npm i ng-flatpickerr
After run the above command
- Include
ng-flatpicker.min.js
to your project. - And then add
ng-flatpicker
modules to your angularjs application.
Example
var myapp = angular;
Usage
To use ng-flatpicker
you just need add ng-flatpicker
attribute and options
to your element.
Example with angularjs
Define options to your controller.
var myapp = angular; angular;
and then to your view file
Note: Need to deine ng-model
in your element.
License
ng-flatpicker
module is under MIT license see project root