2016-09-06 8 views
3

을-VUE 라우터 V-링크에 변수를 전달하는 방법, 각 항목은 제목과 링크가 포함되어 링크 경로가 있지만 실패했습니다. 내가 탐색 목록을 렌더링하고 탐색 목록을 전달하는 VUE 구성 요소가

이 경고를 얻을 :

[Vue warn]: v-link="{{ path: item.link }}": attribute interpolation is not allowed in Vue.js directives and special attributes. 

나는 경우 무엇을해야하는지 V-링크 경로에 패스 변수는? 읽기

감사합니다 :)

답변

3

볼 수 있습니다

<router-link :to="{path: '/applications/' + currentApplicationId}" class="nav-link">Overview</router-link> 

더 많은 문서 here를 찾을 수 있습니다.

관련 문제