Adding rows with ng-repeat and nested loop

前端 未结 6 932
情书的邮戳
情书的邮戳 2020-12-02 15:25

I\'m looking for a way to add rows to a table. My data structure looks like that:

  rows = [
    { name : \'row1\', subrows : [{ name : \'row1.1\' }, { name          


        
6条回答
  •  天涯浪人
    2020-12-02 16:07

    More than 3 years later, I have been facing the same issue, and before writing down a directive I tried this out, and it worked well for me :

    {{ row.name }}
    {{ subrow.name }}

提交回复
热议问题