私はcomponent.ts内に変数を持ち、整数に基づいて選択オプションを生成したい。整数値に基づいて選択ドロップダウンを生成
変数があります。
合計= 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 {
(...)
}
が、これはエラーを与え、Supplied parameters do not match any signature of call t arget
このエラーの原因となるコードを教えてください。 –