【发布时间】:2016-09-25 07:11:31
【问题描述】:
我正在使用 vue-router。
如何将值绑定到链接?
<a v-link="'people/edit/{{ item.id }}'">Edit</a>
错误:
link="'people/edit/{{ item.id}}'": attribute interpolation is not allowed in Vue.js directives and special attributes.
【问题讨论】:
-
v-link="'people/edit/' + item.id"怎么样? -
@Dogbert 它工作...
标签: vue.js vue-router