Hi everyone, I have a problem… I change/set value of data in my component page, and its ok, it work fine, but when I go to another page, and go back to the first page, the data that I change is with de default data from init.
Data:
data: function () { return { name: "test", } },
On init:
on: { pageInit: function (e, page) { var self = this; if (self.$root.infoUsuarioLogueado) { var infoUsuario = self.$root.infoUsuarioLogueado; self.$setState({ name: infoUsuario.nombres + " " + infoUsuario.apellidos }); self.name= infoUsuario.nombres + " " + infoUsuario.apellidos; } } }
I enter and leave the page with navigate method, like this:
this.$router.navigate('/inicio/', { animate: true, pushState: false });
Thanks before after all.