As per my understanding, Both are doing the same functions. But,
ngFor
would be works like as collections?.
ngFo
NgFor can iterate an array but in ngContainer, ngContent we cannot iterate ngFor directly so For iterating we can use [ngForOf] . Here i is variable, ratings is an array.
Ex.
At this example, I want to apply a ngFor and ngIf simultaneously, so i used it.
The other view is that at a normal if we apply ngFor then at rendering it converts it into
...