for loop to display array data in angular 8 code example Example: ngfor <li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li>