Demo: http://codepen.io/mafeifan/pe...
ng-repeat is nested, traversing tr first and then td.
Using native html can output correct content.
But when td is written as directive, it will not be displayed. I don't know why, please give me some advice.
Just add variables in the controller:
table2 is modified to:
It can be achieved~
ng-repeat is generally not recommended to be dynamic, as this will affect performance.
If you insist on writing like this, you can write it as:
The value can also come: