Answer the question
In order to leave comments, you need to log in
How to access Vue properties from a jQuery script in mounted?
I create an instance of Vue.
Optionsvar journalRequestsClient = new Vue({
data: {
filterParam: {
status: 0,
object: 0,
dateStart: '',
dateEnd: ''
}
}
mounted: function () {
this.$nextTick(function () {
$('.datetimepicker').datetimepicker({
format: 'dd.mm.yyyy hh:ii:ss',
autoclose:true,
language: 'ru'
})
.on('changeDate', function(ev) {
var value = $("#selectDateStart").val();
this.filterParam.dateStart = value;
});
})
},
Answer the question
In order to leave comments, you need to log in
Solution to this question: How does Vue respond to changes in value made via jQuery? fits here too.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question