Currently, I am utilizing AngularJS to develop a table using ng-repeat
. One of the columns looks like this:
<tr ng-repeat="x in A"><td>{{calNoMonth(x)}}</td></tr>
Unfortunately, during testing, I noticed that every time I make a change in any cell of the table, the calNoMonth
function is invoked N times (where N is the total number of rows in the table). How can I prevent this from happening? The performance becomes significantly slow when dealing with larger tables.
Appreciate any advice. Thank you.