angular 8 array code example
Example 1: ngfor
<li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li>
Example 2: type script array
let list: number[] = [1, 2, 3];
<li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li>
let list: number[] = [1, 2, 3];