hello World,
i am trying a firebase ionic with user login and logout, when i pressed logout at a page, the home page userdata still exists, i tested using ion refresher, the userdata is gone when i manually refresh the page at chrome.
<div *ngIf="user.name !=null ">
<h5 style="padding-left: 20px;"> Welcome {{user.name}}</h5>
</div>
<div *ngIf="user.name == null">
<img class="slide-image1" src="{{ blue.productpicture }}" alt="">
</div>
the logout at .ts
logOut() {
firebase.auth().signOut().then(() => {
alert("successful logout")
this.nav.navigateRoot('home');
}).catch(() => {
alert("Logout failed");
});
}
am i missing something during logout ?
thank you for guidance
1 post - 1 participant