📜  模板变量是只读的. - 打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:26.788000             🧑  作者: Mango

代码示例1
//Replace the code kinda

*ngFor="let movement of allowedMovements" [(value)]="movement" 

//to

*ngFor="let movement of allowedMovements; let i = index" [(value)]="allowedMovements[i]"