My main issue was trying to loop for a certain number of times let's say n, but the ngFor
only accepts arrays, like: "#item of [1, 2, ..., n]
", so what is the proper way to loop using only the item count (without creating a useless array that has only numbers one to n)?
so I started reading more into the syntax and then i noticed that there are:
*ngFor="#item of items;
*ngFor="#item in items;
so what is the difference between "in" and "of" and what are there use cases? and does it have anything to do with my original case?
Thanks in advance.