gothinkster/vue-realworld-example-app

VTag: Use computed property for router link

オープン

#194 opened on 2019/09/03

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (1,288 件のフォーク)batch import
difficulty:easygood first issuetype:enhancement

Repository metrics

Stars
 (4,037 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

<router-link
  :to="{ name: 'home-tag', params: { tag: name } }"
  :class="className"
>

Ideally, { name: 'home-tag', params: { tag: name } } should be a computed property and then used like:

<router-link
  :to="homeLink"
  :class="className"
>

Related resources:

コントリビューターガイド