Initial rendering is very slow in ng-repeat
. How do I create a read-only version of ng-repeat
, such that when the array that you're iterating over changes, the rendered HTML does not change
A double colon makes things in Angular read-only. Use the following syntax:
<ul>
<li ng-repeat="item in ::items">{{item.name}}</li>
</ul>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With