how to bind Bootstrap-datepicker element with angularjs ng-model?

后端 未结 11 758
囚心锁ツ
囚心锁ツ 2020-11-30 04:44

Here is the html for the date field :

11条回答
  •  清歌不尽
    2020-11-30 05:16

    I have the same problem and resolve like this

    added in html part

    
    

    and simple in Controller call

    $scope.btnPost = function () {
    
              var dateFromHTML = $('#datepicker').val();
    

提交回复
热议问题