Hello, I am currently investigating the use of $cookieStore to record some trivial application settings and would like to update the $cookieStore when the application is going through the process of tear down (either when the user hits the browser reload button or closes the window or navigates away from the application).
Is this possible? I have a controller associated with my main <div ng-app="app"> element and I have tried trapping for $destroy in this controller and attempting the updates in its handler but the event is not trapped. I could update the $cookieStore periodically in this case but i suspect sooner or later i will need to be able to perform application cleanup logic so in general how would/can you detect that an angular application is about to close? Many thanks -- 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/groups/opt_out.
