When my users hit the logout button, I delete their API key from localstorage (or the cookie if that's were I stash it) and then call window.location.reload() rather than try to muck around with resetting the app manually.
e On Thu Dec 11 2014 at 5:50:23 AM Ami Kapadia <[email protected]> wrote: > Hi! > > I strictly don't want to delete variables from $rootScope individually. Is > there any solution so that I can reset whole $rootScope object? > > Thanks! > Ami > > -- > 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. > -- 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.
