How to create check box from multidimensional array using angular js

后端 未结 1 1083
心在旅途
心在旅途 2021-01-29 10:25

I have a multi dimensional array I want to print all data with check box. there is dietry_reqs array below in the code I want to create check box with these value which value is

相关标签:
1条回答
  • 2021-01-29 11:12

    you did not provided enough code but as far as i understand, you can do something like that:

       <div ng-repeat="level1 in attendance">
          <div ng-repeat="level2 in level1.dietry_reqs">
             <input type="checkbox" value="{{level2.value}}">{{level2.name}}
          </div>
       </div>
    
    0 讨论(0)
提交回复
热议问题