title: How can I handle browser tab close event in Angular? Only close, not refresh
body: <p>My goal is remove user cookies when browser tab closed. </p>
  
  <p>Is it possible? Can I handle browser tab close event without refresh case?</p>
  
  <p>If I use <code>beforeunload</code> or <code>unload</code> events, function triggered when user refresh page, I don't want this, I want just run when closed tab.</p>
  
  <p>How can I do this in Angular?</p>