Simple One way binding for ng-repeat?

前端 未结 4 554
渐次进展
渐次进展 2020-12-28 13:49

I have read some articles that said ng-repeat would led to poor performance if there is over 2000 items, because there are too many two way binding to watch. I am new to ang

4条回答
  •  时光说笑
    2020-12-28 14:22

    For anyone using or upgrading to Angular 1.3 you can now use "one-time binding". For ng-repeat it would look like this:

    {{item.name}}

    Notice the ::items syntax.

    For more information check the Angular documentation for expressions.

提交回复
热议问题