[Vuejs]-Adding a Vue Element to Hyperlink

0👍

After some work I got the solution, it is a derivative of the answer posted by @ricristian

<a @click="testFunc()" :title="'More on ' + props.item[hdr.value]"></a>

2👍

You can try this,

new Vue({
  el: '#app',
  data: {
    dynamicVariable: 'Hello Vue.js!'
  }
})
<script src="https://unpkg.com/vue"></script>

<div id="app">
  <a @click="testFunc()"  :title="`More on ${dynamicVariable}`">{{ dynamicVariable }}</a>
</div>

Leave a comment