I have just started learning Angular JS and I am trying to create an 8X8 table using ng-repeat. I am not able to get 8 table header. All the table header is coming in one column. Here is my code.
<table border="1px solid black">
<tr ng-repeat="k in [0,1,2,3,4,5,6,7,8]">
<th>
column
</th>
</tr>
<tr ng-repeat="i in [0,1,2,3,4,5,6,7,8]">
<td ng-repeat="j in [0,1,2,3,4,5,6,7,8]">
[{{i}},{{j}}]
</td>
</tr>
</table>
This is the output of my code. I am not sure why is that happening.

ng-repeatin the<tr>tag, which would logically create 8 rows with a table header in it. Instead try putting the code in the header cell:<th ng-repeat="k in [0,1,2,3,4,5,6,7,8]"></th>