ANGULAR 2/4 : call function for each row in NgFor

前端 未结 2 804
栀梦
栀梦 2021-01-25 23:29

i\'m learning AngularJS, and i need some help.

I have a template like this

    
2条回答
  •  一个人的身影
    2021-01-25 23:45

    Get an array as property on your class. Each time your function is called, set the corresponding item (say i) of this array to the value. And in the template reference the i item of that same array.

提交回复
热议问题