ngOnInit()

hi i am having one issue when i login first time i am getting that particalr user details but when i logout and login with different user again i am getting same result can anyone know how to fix this

I don’t understand what your question is. When you first login, you get particular user details? What do you mean by that and what do you mean by you are getting same result?

You can try ionic lifecycle events like ionViewWillEnter instead of ngOnInit.

Personally i prefer to refresh app when user logout with Location Replace method:

  logOut() {
    this.authenticationService.logout();
    window.location.replace('/');
  }