I am trying to create a dynamic html table using Angular.
The scope has a two-dimensional array (called array) that contains data that is used to generate the table.
Jade:
table(class="table table-striped")
thead
tr
th
| Header
tbody
div(ng-controller="indexCtrl")
tr(ng-repeat="row in array")
td(class="row")
div(ng-repeat="cell in row", class="col-md-6")
.checkbox
label
input(type="checkbox",name="{{cell.permission}}")
| {{cell.name}}
The result I want is:
x box1 x box2
x box3 x box4
At the moment, only the table head is generated. No rows. What is wrong with my template?
Aucun commentaire:
Enregistrer un commentaire