0

I would like to pass the value @{{cash.amount}} in Vue.js to data-value.

<td scope="row"  data-value="HERE">@{{cash.amount}}</td>

I tried this, but not working.

<td scope="row"  data-value="@{{cash.amount}}">@{{cash.amount}}</td>

Thank you

1
  • 1
    try :data-value="cash.amount" Commented Dec 29, 2018 at 14:00

1 Answer 1

1

You should bind it like :

 <td scope="row"  :data-value="cash.amount">@{{cash.amount}}</td>

or

<td scope="row"  v-bind:data-value="cash.amount">@{{cash.amount}}</td>
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.