I am listening for $locationChangeSuccess in Angular using this code:
locationChangeSuccess
$scope.$on(\'$locationChangeSuccess\', function(event) { console.log(\'C
You probably want a listener on window.onbeforeunload which is called just before the window unloads it's resources (refresh).
window.onbeforeunload