Joseph Joseph - 8 months ago 50
AngularJS Question

How do I create a read-only ng-repeat?

Initial rendering is very slow in

. How do I create a read-only version of
, 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:

    <li ng-repeat="item in ::items">{{}}</li>