I have a unique situation where I need to create select options based on an integer stored in a variable inside the component.ts file.
For example, let's say I have a variable called total = 10;
this.totalArray = Array(this.total).fill().map((x, i) => i);
This is what my component.html looks like:
@Component({
template: `
<ul>
<li *ngFor="let number of totalArray">{{ number }}</li>
</ul>
`
})
export class SampleComponent {
(...)
}
Unfortunately, when I try to run this code, I encounter an error message that says Supplied parameters do not match any signature of call target