[Vuejs]-NuxtJS/Vue updating page data after mounte

0👍

To modify the component data, you will need to assign to this.stats so it will be available elsewhere. Returning inside the mounted doesn’t provide you anything as the return value is not used anywhere.

If you use Vue devtools for your browser it is also easy to see while inspecting the component data, that the stats property is not actually changed.

Leave a comment