Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Question about Best Practices on Logging Out a User

$
0
0

@kevincobain2000 wrote:

Hi, I have googled a bit and wasn't able to find a promising answer yet.

I use Parse as backend and my question is about logging out a user.

I am using $scope in all my controllers. When a user logs out, I use $state.transitionTo("tab.login")

Having done so, the scope in the other tabs still point to the old scopes set by the controllers e.g $scope.profile. It is very troublesome to do an emit $rootScope.emit("logged-out") and clear out scope in all the respective controllers.

Any suggestions on coding practice or a workaround?

Like once the user logs out, all the controllers (with tabs) are refreshed.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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