Simplifying expression in iterator biding to ngModel
问题 I have arrived at a lengthy syntax iterating over data[areaId].main.points . Since the data is bound via [(ngModel)] , it looks atrociously in my opinion. Something like this. <div *ngFor="let item of data[areaId].main.points; let index = index; let ..." ...> <input [(ngModel)]="data[areaId].main.points[index].e" ... > <input [(ngModel)]="data[areaId].main.points[index].n" ... > ... </div> Usually, when the syntax gets ugly, it's a strong indication that the design sucks and should be