dynamic id ng-repeat

后端 未结 4 528
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 18:38

I am trying to set a dynamic id to my div within my ng-repeat. Let me show an example.

4条回答
  •  执念已碎
    2020-12-30 19:23

    Works well, but you can also put a dynamic id with the field repeated if - for instance - subRepeat would have an id field. That would be:

    That will put ids like subRepeat1, subRepeat2, ... on your repeated div

提交回复
热议问题