gothinkster/vue-realworld-example-app

VTag: Use computed property for router link

Open

#194 aperta il 3 set 2019

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)JavaScript (1288 fork)batch import
difficulty:easygood first issuetype:enhancement

Metriche repository

Star
 (4037 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

<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:

Guida contributor