I have a variable inside the component.ts and i want to generate select options based on the integer.
Say i have a variable
total =10;
this.totalArray = Array(this.total).fill().map((x,i)=>i);
component.html
@Component({
template: `
<ul>
<li *ngFor="#number of totalArray">{{number}}</li>
</ul>
`
})
export class SampleComponent {
(...)
}
but this gives an error, Supplied parameters do not match any signature of call t arget