Discussion
Discussion copied to clipboard
How can I re initialize same components in different routes
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.