angular *ngIf variable = 1 code example Example: ngif is string angular <div *ngIf="item==='somevalue'">