I need to display a table in an html page using ng-repeat. most records in the table have null data, but I cannot replace null with empty or string zero. I tried {{row || 'null'}}, but that didn't help. When it generates a table, it is completely disabled if the rows have a large number of zeros.
<table>
<tr>
<th ng-repeat="colname in sqldata.collist">{{colname}}</th>
</tr>
<tr ng-repeat="rows in sqldata.tablist">
<td ng-repeat="row in rows">{{ row || 'null' }}</td>
</tr>
</table>

source
share