gothinkster / vue-realworld-example-app

An exemplary real-world application built with Vue.js, Vuex, axios and different other technologies. This is a good example to discover Vue for beginners.

Home Page:https://vue-vuex-realworld.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VTag: Use computed property for router link

igeligel opened this issue · comments

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

I can tackle this if you don't mind.

Use computed property for router link #231

@andriyfm this PR got error that name is null
We should accept pull request of @kylerits . That PR fix my error