A
A
Anton Anton2018-10-08 12:07:12
Vue.js
Anton Anton, 2018-10-08 12:07:12

How to animate vue-router when switching between same components?

When transitioning between different components, the animation works, but when transitioning between the same, differing only in parameters, it does not.
https://codepen.io/anon/pen/EdyMXp
I'm interested in a way without additional variables in data, how to make it clear with them through watch.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-10-08
@Fragster

Set a key for router-view depending on the route.
For example: . <router-view :key="$route.path"></router-view>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question