I am new to Angular and just wanted to understand if I can use the ngFor directive without the let item of items; let i = index syntax
Is there any other way of getting hold of the index while iterating an array when using ngFor
My Sample App
<div *ngFor="let oddNumber of oddNumbers; let i = index">
<app-odd *ngIf="oddNumbers[i]" [number]="oddNumbers[i]"></app-odd>
<app-even *ngIf="evenNumbers[i]" [number]="evenNumbers[i]"></app-even>
</div>