Lakshmi
Lakshmi

Reputation: 85

Difficulty in creating tabs in angular7

In my application I want to create a tabs inside the the div which is used to display the grid using datatables. Based on the tab click i want to display the grids respectively

Upvotes: 1

Views: 21

Answers (1)

Prasanth Mohan
Prasanth Mohan

Reputation: 285

One option you have is to use the Angular Material tabs.

<mat-tab-group>
    <mat-tab label="tab1">
      <div>
       ......
      </div>
  <mat-tab label="tab2">
   <div>
    .....
   </div>
  </mat-tab>
</mat-group>

Upvotes: 1

Related Questions