title: What should I do to be able to run my function after I click on a mat-tab?
body: <p>I have a function in my component:</p>
  <pre><code>aaa(  ) {
      console.log('mat-tab')
  }
  </code></pre>
  <p>I want to run my function when I click on a <code>mat-tab</code> I tried this code:</p>
  <pre><code>&lt;mat-tab label=&quot;Tools&quot; (click)=&quot;aaa( )&quot;&gt;
  
  &lt;/mat-tab&gt;
  </code></pre>
  <p>but it is not working.</p>
  <p>What should I do to be able to run my function after I click on a <code>mat-tab</code>?</p>