Open manudeluca opened 2 years ago
Hi, I want to create a new page. I proceed with the creation as in the documentation: https://doc.laravue.dev/guide/development/new-page.html#add-the-route
In the component I add a "count" variable in the data and an "addCount" method to increment the variable.
The method works and manipulates the variable but once I switch from one route to another, the component reloads.
Can you tell me why?
Hi, I want to create a new page. I proceed with the creation as in the documentation: https://doc.laravue.dev/guide/development/new-page.html#add-the-route
In the component I add a "count" variable in the data and an "addCount" method to increment the variable.
The method works and manipulates the variable but once I switch from one route to another, the component reloads.
Can you tell me why?