Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

Userdata still exist in homepage after clicked logout from another page

$
0
0

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

:bowing_man: :bowing_man: :bowing_man:

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>