angularjs - Angular ngCordova Datepicker doesnt display -


i installed ngcordova datepicker , can't find why datepicker isnt working :

1) view integrated ng-click="datepicker()":

<a ng-click="datepicker()" class="item item-icon-left item-icon-right" href="#">   <img id= "icon_calendar" src="../img/icon_calendrier.svg"/>   <p class="time_date"> </p>   <img class= "flechedate" src="../img/fleche_bleuclaire.svg"/> </a> 

2) controller (following doc in ngcordova website):

angular.module('foot',[]).controller('footcontroller', function ($scope, $cordovadatepicker) {  $scope.foot;  $scope.datepicker = function(){   var options = {     date: new date(),     mode: 'date', // or 'time'     mindate: new date() - 10000,     allowolddates: false,     allowfuturedates: true,     donebuttonlabel: 'done',     donebuttoncolor: '#f2f3f4',     cancelbuttonlabel: 'cancel',     cancelbuttoncolor: '#000000'   };   document.addeventlistener("deviceready", function () {      $cordovadatepicker.show(options).then(function(date){         alert(date);       });    }, false); };  }); 

it looks need include ngcordova dependency in angular module.

angular.module('foot', ['ngcordova']) 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -