In my app.component.tsI have a variable of type number like so
somevar: number = 3
I am trying to loop over it in my app.component.html and do something three time (in this case, since somevar is 3).
Is this possible since the variable is not an array in which case this would be trivial using the ngIf directive.
I tried something like below -but that's pretty idiotic and doesn't work, of course.
<div *ngFor="let i = somevar; while i > 0; i--">
   <span>+</span>
</div>