Parsing/binding JSon file into Table using Angular

后端 未结 1 1993
失恋的感觉
失恋的感觉 2021-01-26 05:39

How can I bind Place And Activity under Json? I do parse Event and AccountShop using table and it runs. I think its because of the delimiter in Place and Activiy? Can anyone hel

相关标签:
1条回答
  • 2021-01-26 06:15
     <tr ng-repeat="member in members">
        <td>{{member.Event.id}}</td>
        <td>{{member.Event.account_id}}
        <td>{{member.Event.ishop_id}}
       </td><td>{{member.AccountShop.id}}
       </td> </tr>
    

    You don't need to iterate through Event, Account, Place , because they are single entities. Instead of this iterate over members. So you can get Event and it's own properties, AccountShop and it's properties and etc...

    0 讨论(0)
提交回复
热议问题