AngularJS: ng-repeat with dynamic list, without rebuilding entire DOM tree?

前端 未结 3 1793
轻奢々
轻奢々 2020-12-08 19:26

I\'m using ng-repeat on a table row with data from a JSON array retrieved from a server. My goal is to have the list update automatically whenever an item is added, removed

3条回答
  •  盖世英雄少女心
    2020-12-08 19:59

    I belive this article will explain how ngRepeat works

    http://www.bennadel.com/blog/2443-Rendering-DOM-Elements-With-ngRepeat-In-AngularJS.htm

    So if you are keeping objects in collection - then yes ( i e $hashKey persist )

    Otherwise - no

提交回复
热议问题