jeudi 16 janvier 2020

An if else in a mat-cell Angular 8

<ng-container matColumnDef="tipalabra">
<mat-header-cell *matHeaderCellDef mat-sort-header> Tipo palabra</mat-header-cell>
<mat-cell *matCellDef="let row">  </mat-cell>

row.tipalabra returns or T or E, if it is T I want it to put "Text" in mat-cell and if it is E "Expression"

I've seen how to do it and only examples appear with if but not with else

Aucun commentaire:

Enregistrer un commentaire