1<li *ngFor="let a of fakeArray; let index = index">Something {{ index }}</li>
1for (let i = 0; i < 3; i++) {
2 console.log ("Block statement execution no." + i);
3}
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