4👍
With Vue 2 you don’t use interpolation in attributes, you use the attribute binding syntax.
<tr v-for="detailItem in itemList" v-bind:data-key="detailItem.pk">
Or the shortcut
<tr v-for="detailItem in itemList" :data-key="detailItem.pk">
👤Bert
- [Vuejs]-Error: Request failed with status code 404 (Node.js + Vue.js)?
- [Vuejs]-Vue 2 call method in v-for performance issue
Source:stackexchange.com