如何将 ngFor 循环的索引值传递到组件中?
- 论坛
- 如何将 ngFor 循环的索引值传递到组件中?
17 浏览
如何将 ngFor 循环的索引值传递到组件中?
这个问题已经在此处有答案:
我在代码中使用了ngFor循环,我想在点击这个div时将索引值传递给typescript文件。
我是Angular 2的新手,任何帮助都将受到赞赏。
例如:
` `
admin 更改状态以发布 2023年5月22日
这个问题已经在此处有答案:
我在代码中使用了ngFor循环,我想在点击这个div时将索引值传递给typescript文件。
我是Angular 2的新手,任何帮助都将受到赞赏。
例如:
` `