首页 > 解决方案 > 在 IE 11 中,ng-repeat 中的项目在一秒钟左右后消失?

问题描述

这仅在 IE/Edge 中发生,并且在 Chrome/Firefox 中按预期工作。但是,在 IE 中,表格项会显示一秒钟然后消失。这是我的 HTML:

<table md-table md-row-select ng-model="upLoaders">
                    <thead md-head md-order="query.tom" md-on-reorder="getIds">
                    <tr md-row>
                        <th md-column><span>Username</span></th>
                        <th md-column>Role</th>
                        <th md-column>Approved</th>              
                    </tr>
                </thead>
                <tbody md-body>
                    <tr md-row ng-repeat="user in filtered = (users | filterArray:uploadedUsers)">
                        <td md-cell>{{user.username}}</td>
                        <td md-cell>{{user.role}}</td>
                        <td md-cell>{{user.approved}}</td>
                    </tr>
                </tbody>
</table>

标签: angularjsangularjs-ng-repeat

解决方案


尝试将 Angularjs 版本更新到 1.7.2 以上


推荐阅读