I have a list of users and each user can be disabled or enabled. I would like the user to set the 'false' value to change the color to gray.
HTML:
<tbody>
<tr *ngFor="let user of users" >
<td>{{user.user}}</td>
<td>{{user.email}}</td>
<td>
<button class="btn btn-danger" data-toggle="modal" (click)="getUser(user)" data-target="#exampleModal">Recuperar Senha</button>
</td>
<td >
<button [hidden]="user.active == false" class="btn btn-danger" (click)="desativarUsuario(user)" >Desativar</button>
<button [hidden]="user.active == true" class="btn btn-danger" (click)="desativarUsuario(user)" >Ativar</button>
</td>
</tr>
</tbody>