I am working on a task where I am looping an array inside a tag & using target=”_blank” attribute but one of the array element should not want this target=”_blank” attribute so what to do?
<ul *ngIf="item.menu">
<li *ngFor="let subMenu of item.menu">
<a href="{{subMenu.link}}" target="_blank">{{'landing.menu.' + subMenu.name | translate}}</a>
</li>
</ul>