I want to fill a table with tr's and td's with a loop in angular. I have used PHP to fill my table with the tr's and td's:
for($j = 1; $j <= 8; $j++){
echo "<tr>";
for($i = 1; $i <= 20; $i++){
if($string[$k] == "#"){
echo "<td id='$k'>#</td>";
}elseif($string[$k] == "&"){
echo "<td class='click' val='water' id='$k'>&</td>";
}else{
echo "<td class='click' id='$k'><a href='#'></a></td>";
}
$k++;
}
echo "</tr>";
}
How can I accomplish the same thing using angular?