Angular directive to create a dropdown or inline datepicker using the Javascript agnostic library Kalendae.
angular demo mode='multiple':
- include module:
var App = angular.module('app', ['Kalendae']);- using directive in html:
<div id="kalendaeDiv" style="width:175px; height:175px;" kalendae ng-model="constData.kalendaeDivVal"
callback="confirm()"
mode='multiple'> </div>- in your controller define confrim function and variable:
$scope.constData = {
kalendaeDivVal: "2017-07-12, 2017-07-14" // init values
};
$scope.confirm = function (){ //callback after selected date
console.log( $scope.constData );
}