Answer the question
In order to leave comments, you need to log in
How to use $refs in watch?
hello i have
watch: {
"$i18n.locale": (newLang) => {
somecontext.$refs.selectedLocale.innerHTML = document.querySelector(
`div[data-locale="${newLang}"]`
).innerHTML;
},
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question