Angular how to check the value of {{x}} using *ngIf code example Example: ngif is string angular <div *ngIf="item==='somevalue'">