title: Detect click on the currently active tab. ( Angular material tab )
body: <p>I have a mat-tab group with different tabs. I want to detect click on the active tab header. </p>
  
  <p>Eg. I have 2 tabs-  a <em>company tab</em> and a <em>users tab</em> and inside each tab there are 2 views - a list view view and a detailed view. Initially I want to load the list and on clicking on an item, want to go to the corresponding item's detailed view. But If I click on the tab header again I want to goto the list view again. </p>
  
  <p>There are events like (<code>selectedTabChange</code>) which detects if tab is changed but since I am inside the same tab, it is not getting emitted. Any help.?</p>
  
  <pre><code>&lt;mat-tab-group class="theme-specific-tabs account-page-tabs" [(selectedIndex)]="selectedTab"  (selectedIndexChange)="accountTabOnIndexChange($event)"&gt;
  </code></pre>