eval(evaluation: string) { return eval(evaluation) } <div *ngFor="..."> <div *ngIf="eval('...')"></div> </div> Run code snippet