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