it is possible to make another condition in *ngIf. I try add condition like this in *ngIf commonService.indexKey$.getValue().includes(item.id)?item.quantity - commonService.liststock$.getValue() > 0:item.quantity; else notFound
but i got error this error message Error: Uncaught (in promise): Error: Template parse errors:Parser Error: Missing expected
.
HTML
<div *ngFor="let item of commonService.indexList$.getValue(); let i = index" class="Box">
<span *ngIf="commonService.indexKey$.getValue().includes(item.id)?item.quantity - commonService.liststock$.getValue() > 0:item.quantity; else notFound">
</span>
<ng-template #notFound>
</ng-template>