Simple One way binding for ng-repeat?

前端 未结 4 574
渐次进展
渐次进展 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:19

    1. what ever is generated by ng-model will be having a watcher on data(model) which reduces the page performance if it crosses 200 watchers.

    2. Refer this for ONE WAY BINDING http://blog.scalyr.com/2013/10/31/angularjs-1200ms-to-35ms/ but make sure you use it properly

    Hope it helps!!!

提交回复
热议问题