I’ve recently run into a problem using angular fire in IONIC, whenever I store info in the database, the current view is switched to the homepage by default. For example:
this.afDatabase.object(`perfil/${this.idUsuario}/disponible`).set(true);
If I use that line, the item is stored but the view from the user profile is gone, and the app moves to the homepage.
My quick solution is:
this.afDatabase.object(`perfil/${this.idUsuario}/disponible`).set(true).then(()=>this.navCtrl.push(PerfilPage));
But I don’t want to reload the current view again, is there a better way to do it?