ngFor

If you don't have an array to loop through, you can define the number of loops by a number.

Adding the let e of [].constructor(3) to the elements you want to repeatitly rendered not by looping over an array but by a fixed number, it creates an array on the fly that ngFor will use to loop.

So if, for example, you want to render a <span> element for exactly 3 times or a button 5 times in a DOM you can use the following structures.