title: Close currently open browser tab on button click in angular 7
body: <p>I have tried some many codes but none is helping my requirement is to close the tab which is open on button click in a page.</p>
  
  <pre><code>window.open("about:blank", "_self");
  window.close();
  </code></pre>
  
  <p>This piece of code on click function in angular but it showing blank page on current active tab but not closing the window.</p>
  
  <p>it not a anchor it is a button and here its using angular code we need to do this.</p>