I have a dynamic table having the last column as clickable icon. When I click the icon, I show another table below that clicked icon's row. The functionality is working fine with my code. However, the rows are not having alternate color like css class 'table-striped' after I click on the icon. All the rows acquire same color after the click. What can I do to make the table row's css as 'table-striped'
<table class="table table-hover table-striped" *ngIf="datas && datas.length">
<thead>
<tr>
<th>a</th>
<th>b</th>
<th> </th>
</tr>
</thead>
<tbody>
<ng-container *ngFor="let data of datas; let i = index">
<tr>
<td>{{data.Something1}}</td>
<td>{{data.Something2}}</td>
<td>
<div (click)="onClick(i,data)"><span class="glyphicon" [ngClass]="{'glyphicon-chevron-up': data.opendPanel , 'glyphicon-chevron-down': !data.opendPanel }"></span></div>
</td>
</tr>
<tr *ngIf="lists && lists.length" [hidden]="!data.opendPanel">
<td colspan="13">
<div [hidden]="!data.opendPanel">
<br /><p *ngIf="lists && lists.length" >Stores</p>
<div>
<table class="table table-hover table-striped" *ngIf="lists && lists.length">
<thead>
<tr>
<th>aa</th>
<th>bb</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let list of lists">
<td>{{aa.Name}}</td>
<td>{{bb.DCLocation}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</td>
</tr>
</ng-container>
</tbody>