I found that transition is not firing on dynamic route with parameters. For exemple with the code below, when I am in /chapter/1
and I go to /chapter/2
Came here with the same problem and @Mani's answer works fine.
But I don't really like the idea of using two
s.
So I tried putting the key
in
instead. And it works!
Working example: https://codepen.io/widyakumara/details/owVYrW/
Not sure if this the proper vue-way of doing things, I'm kinda new using vue.
PS. I'm using Vue 2.4.1 & Vue Router 2.7.0