如何为angularUI datepicker添加ng-swipe-left和ng-swipe-right?

时间:2015-05-08 22:11:16

标签: angularjs datepicker angular-ui angular-touch

如何使用角度触摸库添加ng-swipe-left和ng-swipe-right来导航angularUI datepicker next&前几个月?

我添加了plunker here

    $scope.Next = function() {
    $scope.$evalAsync(function() {
      angular.element(document.querySelector('.pull-right')).triggerHandler('click');
    });
  };

  $scope.Previous = function() {
    $scope.$evalAsync(function() {
      angular.element(document.querySelector('.pull-right')).triggerHandler('click');
    });
  };

从plunker代码中,我得到错误:$ rootScope:inprog 来自浏览器控制台的“正在进行中的操作”

0 个答案:

没有答案