title: Dynamic Tabs with content : Angular Material
body: <p>There is two tabs present in my application,I have achieved the same using ngFor. The code for the same is,</p>
  
  <pre><code> &lt;mat-tab-group &gt;
    &lt;mat-tab (click)="testMethod2GetTitle(tabtitle)" *ngFor="let tabtitle of selelectedTabs; let index = index" [label]="tabtitle"  class="tab-title"&gt; 
          &lt;mat-selection-list &gt;
            &lt;mat-list-option  *ngFor="let list of tabsData" &gt;
  
                   {{list}}
                  &lt;/mat-list-option&gt;
              &lt;/mat-selection-list&gt;
  
    &lt;/mat-tab&gt;
    &lt;/mat-tab-group&gt;
  </code></pre>
  
  <p>Then for each tab I need to show different data. For example the tab with title as Asia, will be showing India, Pakistan, China and tab with title "America" will be showing the list of South america, New york, Brazil etc.,.</p>
  
  <p>The logic which I tried to get passing list of values to tabsData , by taking the tabstitle when the user clicks the same. But it has the following shortcoming:</p>
  
  <ol>
  <li>I'm not able to get the title of the tab in backend, while I click the title.The method itself is not called.</li>
  <li>All the tabs populate the values of last selected tab.</li>
  </ol>