<a *ngIf="href" [href]="href">{{ text }}</a> <div *ngIf="!href">{{ text }}</div>