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