How can I handle browser tab close event in Angular? Only close, not refresh.
I am not able to identify when page is refreshed and when tab or browser is closed.
Because in both cases it fires "window:unload" and window:beforeunload" event so it's hard to identify.