Question about Best Practices on Logging Out a User

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.