angular if condition in expression code example Example: angular if <div *ngIf="condition">Content to render when condition is true.</div>