Is it possible to parse Vue.js data with jQuery? -
i have line of jquery code:
$("#shownames").text("{{ $t('hide_labels') }}");
i'd set text of #shownames
element value taken vue-i18n
instance, dependent on user localization. when it's written way, literal moustache syntax contents. there way values displayed?
you can this:
$("#shownames").text(this.$t('hide_labels'));
if choose. it's best use vue methods update dom, available if need it.
Comments
Post a Comment