[Vuejs]-Unable to bind v-model with vue-date-picker

0👍

try this:

 data() {
    return {
      startDate: new Date("2019-09-17")
    };
  },

-1👍

var elm = new Vue({
  el: '.app8',
  mounted () {
    var vm = this
    $('#datedate').datepicker ({
        onSelect: function(dateText) { 
            vm.date = dateText
        }
    })
});
<div class="row mt-5">
  <div class="col">
      <div class="app8">
          <input v-model="date" name="date" class="input" type="date"  id="datedate">
      </div>
  </div>
</div>

Hope this will help

Leave a comment