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