Is possible, use something like the following in a template of angular2,
for int a = 0; a < numberTest; a++
this numberTest is in code component:
numberTest: number = 5;
and the template, something like this, it is better to illustrate what I mean:
<li *ngFor="#int a = 0; a < numberTest">
I know that could be solved using an array, and iterate for example:
<li *ngFor="#item of items">
but my question is, if possible, create a for, in the template, which take the value condition using a variable component, hope I explain well.