Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的应用程序中使用智能表。智能表配置有静态标题和分页栏。数据通过异步请求加载。当接收到的数据为空时,智能表会显示标题和分页栏。我想在两者之间显示空文本。我已阅读所有文档,但没有找到任何允许设置空文本的配置。我该怎么做?
以下
<tr ng-repeat="row in rowCollection"></tr>
当数据为空时,放置另一个trwith ng-ifor指令。ng-show
tr
ng-if
ng-show
<tr ng-if="rowCollection.length == 0"> // your message here </tr>