<div class = "CirclePoint" *ngFor="let c of circles" [attr.id]="'Location' + c.id"> </div> <div class = "CirclePoint" *ngFor="let c of circles" attr.id="Location{{c.id}}"> </div>