I have html that looks something like this:
<as-split unit="pixel" #mainViewSplit class="custom-gutter" direction="horizontal" gutterSize="2">
<ng-container *ngFor="let splitItem of splitData">
<as-split-area [id]="splitItem.id" *ngIf="(splitItem.isVisible$ | async)"
[order]="splitItem.order">
<ng-container *ngTemplateOutlet="splitItem.template"></ng-container>
</as-split-area>
</ng-container>
</as-split>
This works fine for split items that have id. But some of them are undefined and then there shouldn't be id at all in html. But for items without id html looks like this:
id="undefined"
I also tried
[id]="splitItem.id ? splitItem.id : null"
because comment in this question suggest to use null, but it doesn't work. It just results in
id="null"
How to set binding so that there won't be id in html at all?