Hello,

I am using services to share data across multiple controllers. But I noticed
that when I logout and log back in the data in my services still has data 
from the previous session.

How can I properly clean up my services after I finish a session?

Thanks

PS: my service looks like this

app.factory('UserModel', function(){
  var user = {
    id: '',
    profile: {}
    ...
  }

  return user; 
});

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to