Angularjs IE中的嵌套ng重复性能问题
Am使用嵌套的Angularjs IE中的嵌套ng重复性能问题,angularjs,angularjs-ng-repeat,Angularjs,Angularjs Ng Repeat,Am使用嵌套的ng repeat在JSON下面显示(给定的示例格式实际格式不同,并且有很多属性)。当列表大小为100时,在IE中渲染需要25秒以上 我试着使用“跟踪方式”和“oen-way绑定”,但没有成功 资料 HTML {{::item.name} 州{{::地点.州} 请分享您在IE中提高嵌套ng重复性能的想法。感谢您的回复。我正在使用ng,如果在所有地方,使用分页页面大小为100。对于100条记录,需要30秒。您的性能问题可能是由于ng if指令造成的。他们增加了新的作用域和观察
ng repeat
在JSON下面显示(给定的示例格式实际格式不同,并且有很多属性)。当列表大小为100时,在IE中渲染需要25秒以上
我试着使用“跟踪方式”和“oen-way绑定”,但没有成功
资料
HTML
{{::item.name}
州{{::地点.州}
请分享您在IE中提高嵌套ng重复性能的想法。感谢您的回复。我正在使用ng,如果在所有地方,使用分页页面大小为100。对于100条记录,需要30秒。您的性能问题可能是由于
ng if
指令造成的。他们增加了新的作用域和观察者。
{name: "name1", placeVisited: [{city: 'city1', state: "state1"}]}
<div ng-repeat="item in items track by item.name" class="col-md-4 col-sm-6" style="float: none; display:inline-block; vertical-align: top; cursor: pointer" >
<a class="tile" id="tile{{$index}}" >
<div class="tile-head">
<div class="tile-ont-img"><img src="user.png" class="img-responsive" > </div>
<h4>{{::item.name}}</h4>
</div>
<div class="tile-body" >
<p ng-repeat="place in ::item.placeVisited track by port.state" >
State {{::place.state}}
</p>
</div>
</a>
</div>