how to do an if statement angularjs code example Example: if angular <div *ngIf="condition">Content to render when condition is true.</div>