AngularJS-ng-repeat数据闪烁然后消失

时间:2015-08-19 20:30:44

标签: angularjs angularjs-ng-repeat

我有以下内容:

<li ng-repeat="deposit in currentDeposits">
    <img src="@{{ deposit.displayUrl }}" />
    <a class="name" href="http://steamcommunity.com/profiles/@{{ deposit.steam_id }}">@{{ deposit.displayName }}</a>
    <p class="name">Deposited @{{ deposit.items.length }} skins worth $@{{ deposit.value }}!</p>
    <hr />
    <li ng-repeat-end>
        <div class="new-round">
            <p>^ NEW ROUND START ^</p>
        </div>
        <hr />
    </li>
</li>

<li ng-repeat="deposit in lastGameDeposits">
    <img src="@{{ deposit.displayUrl }}" />
    <a class="name" href="http://steamcommunity.com/profiles/@{{ deposit.steam_id }}">@{{ deposit.displayName }}</a>
    <p class="name">Deposited @{{ deposit.items.length }} skins worth $@{{ deposit.value }}!</p>
    <hr />
    <li ng-repeat-end>
        <div class="new-round">
            <p>^ NEW ROUND START ^</p>
        </div>
        <hr />
    </li>
</li>

此第一次重复数据显示正常,但第二次重复重复内部的数据仅在屏幕上闪烁,然后消失。有时数据会保留,但这并不常见。

这是一个知道问题吗?

0 个答案:

没有答案