Joseph Joseph - 1 year ago 117
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

Answer Source

A double colon makes things in Angular read-only. Use the following syntax:

    <li ng-repeat="item in ::items">{{}}</li>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download