I am trying to find out how to create a variable in an ngFor loop.
ngFor loop
I have a loop like this:
&l 4条回答 离开以前 (楼主) 2020-12-03 07:06 I think this is a classic case for making a subcomponent. Your component would then have a prod input and run the required function once in OnInit. Simple example plunk here 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
I think this is a classic case for making a subcomponent.
Your component would then have a prod input and run the required function once in OnInit.
prod
OnInit
Simple example plunk here