Ways to improve AngularJS performance even with large number of DOM elements

前端 未结 6 480
自闭症患者
自闭症患者 2021-02-02 11:14

I\'m evaluating whether or not to use AngularJS for a web project, and I\'m worried about the performance for a feature I need to implement. I would like to know if there\'s a

6条回答
  •  佛祖请我去吃肉
    2021-02-02 11:36

    Well, I can see you are using $watch. Angular recomends $watch whenever it is very much needed. SCenarios like updating a variable through ng-model

    http://jsfiddle.net/5qFzg/10/
    

    Suraj

提交回复
热议问题