<div *ngFor="let f of layout?.photoframes; let i = index" [attr.data-index]="i">
<input type="number" [(ngModel)]="f.x" [style.border-color]="(selectedObject===f) ? 'red'" />
</div>
An error is triggered by the conditional style.
The conditional expression (selectedObject===f) ? 'red' requires all 3 expressions at the end of the expression [(selectedObject===f) ? 'red']. What can be done to fix this?