SyntaxFix
Write A Post
Hire A Developer
Questions
Try this
<div *ngFor="let piece of allPieces; let i=index"> {{i}} // this will give index </div>