Is there any way to differentiate the events - reload and close the window? As $window.onbeforeunload works in both cases and I have not found any difference in both the events.
In my case, I have to call different functions on a different event.
So, please suggest any solution or alternative.