ngif verify if a variable is valid code example Example: ngif is string angular <div *ngIf="item==='somevalue'">