D
D
devilsD2019-03-25 16:13:31
Vue.js
devilsD, 2019-03-25 16:13:31

Why doesn't reactivity work in Vue (nuxt) attribute value?

There is a code

<a v-bind:href="'tel:'+phone" >
{{phone}}
</a>

export default {
  data() {
      return {
          phone:  this.$GD('phone')
      }
  }
}

this.$GD('phone') - method from mixin.
the {{phone}} part is updated, but the value of the href attribute does not change.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question