1<li *ngFor="let a of fakeArray; let index = index">Something {{ index }}</li>
1let array = [1,2,3];
2for (let i = 0; i < array.length; i++) {
3 console.log(array[i]);
4}
1
2 content_copy
3
4 <h2>Products</h2>
5
6<div *ngFor="let product of products">
7</div>
8
1let array = [1,2,3];
2array.forEach(function (value) {
3 console.log(value);
4});