vuejs / Discussion

Vue.js discussion
166 stars 17 forks source link

How can I re initialize same components in different routes #1294

Open jtundag opened 7 years ago

jtundag commented 7 years ago

Hello guys, I hope you can help me Scenario: I have a multi-step form, if the user clicks on the next button, the only thing that changes in the route is the id eg. form/step/:id, but whenever I have steps/routes that contains the same components as the previous one, it only calls the 'created' method of the components of the first, it doesn't call on the next one.

Is there a way to re-create/initialize the components every time i change routes? Thanks in advance.