Ion-menu cargar datos al abrir

Buenas tardes,

Estoy usando ionic 4 y me gustaría saber si hay forma de que se refresquen datos del menú cada vez que se abre, ya que cuando recupero los datos en el onInit lo hace pero no tengo manera de actualizar a medida que avanza la aplicación.
He probado de usar dos menús, ya que la estructura que va a tener lo permite pero una vez abre el 2º menú y vuelvo a atrás el menú principal de la aplicación no se vuelve a abrir.
¿Alguna idea de lo que puede pasar?

Gracias de antemano

you could try using Events (https://ionicframework.com/docs/v3/api/util/Events/) which would be subscribed to in the menu and published from the component your data is originating from

I believe OP is asking about Ionic framework v4, in which Events have been removed. Since that’s probably not a very constructive comment on its own, here’s why I think Observables have always been better at doing whatever Events were trying to do.

1 Like