vuejs / vue-router

🚦 The official router for Vue 2
http://v3.router.vuejs.org/
MIT License
18.99k stars 5.06k forks source link

router-link exact not working #741

Closed terrylow closed 8 years ago

terrylow commented 8 years ago

im following the migration guide to migrate from vuejs1+vuerouter 0.7 to vuejs2+ vuerouter 2 but it seem the router-link do not perform an exact match on link,

Kindly references to the jsfiddles

VueRouter 2.0.0 , this will also highlight the first link when i click the second VueRouter 0.7.13 this is working prefectly

Samuell1 commented 8 years ago

Its working but you need to use it as separate attribute

  <router-link :to="{path: '/edit/1'}" tag="li" exact>
    <a>Slide info</a>
  </router-link>