-1
I basically have this *ngIf
<label>{{view._source.favoriteView }}</label>
<!--Não é favorito-->
<div *ngIf="view._source.favoriteView">
<button (click)="unsetAsFavorite(view._id)" matTooltip="Favoritar" mat-icon-button >
<mat-icon>favorite</mat-icon>
</button>
</div>
<!--É favorito-->
<div *ngIf="!view._source.favoriteView">
<button (click)="setAsFavorite(view._id)" matTooltip="Desfavoritar" mat-icon-button color="warn" >
<mat-icon>favorite</mat-icon>
</button>
</div>
The label
displays the expected correct value (true / false), but is ALWAYS entering the first *ngIf
, even if false, I tested using the *ngIf
however available in the documentation and none worked, which I am missing?