How to catch the bootstrap datepicker change event?

后端 未结 4 719
野性不改
野性不改 2021-02-07 04:58

Now I am trying to do something after user change the date. But seems like my ng-change is ignored.

Here is my code sample:

 

        
4条回答
  •  天涯浪人
    2021-02-07 05:24

    Simple solution: Try passing the value:

    HTML

    ng-change="selectDate(dt)"
    

    JavaScript

    $scope.selectDate = function(dt) {
      console.log(dt);
    }
    

提交回复
热议问题