dynamic id ng-repeat

后端 未结 4 510
伪装坚强ぢ
伪装坚强ぢ 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:25

    A use case I can think of is associating elements with their respective elements, as seen in http://jsfiddle.net/YqUAp/

    Applied there is a pkozlowski.opensource's method

    
    
    

    Though I'm unsure if this is the most effective method. (Even if only for readability)

提交回复
热议问题