I'm using bootstrap-date-picker with Vue.js 2. Bootstrap datepicker doesn't update the model.
But if I use the following script, I cannot access the scope to use this
loadFormProps() {
// init other stuff
$('#founding_date').change(function() {
this.founding_date = $(this).val();
});
}
Modal is as following:
data() {
return {
founding_date: '01 - 01 - 2017',
}
};
What will be the best solution for this, as I cannot get vm.$data working, and I cannot access this within the function.
thisinside thechangecallback function. Whichthisis not accessible? What is the console error message? What should the firstthisrefer to?