Use the Repeat directive as an extension of Angular’s NgFor to iterate over a fixed number of iterations. The TrackByFunction is automatically set to efficiently iterate.
This will produce the following output:
API
Inputs
n: number - A non-negative integer, specifying the number of iterations.
Validation
An error is thrown if the input is either negative or not an integer.