Vue NextTick
this.$nextTick(() => {});
Panicky Polecat
this.$nextTick(() => {});
// Passing in immediate: true in the option will trigger the callback immediately with the current value of the expression:
vm.$watch('a', callback, {
immediate: true
})
// `callback` is fired immediately with current value of `a`
var vm = new Vue({
watch: {
d: {
handler: 'someMethod',
immediate: true
}
}
}