4
我想加载一个图像列表显示与每个图像加载显示的微调。如何添加一个微调器为每个图像加载在离子
这是我有,但没有看到如何添加一个微调为每个图像,而不是装载看到黑屏,因为他们加载
<div ng-repeat="i in data| filter: { tags: tag } " class='wrapper' id="homeImg">
<!-- wrapper div -->
<!-- image -->
<a href="#/information"> <img class="ng-cloak" style="float:left; display:inline-block; overflow:hidden; border: 1px;" class="fill_image" src='{{ i.picture }}' style width="100%" style height="100%" ng-click="disableClick('{{ i.firebase_url }}')" /> </a>
<!-- description div -->
<div class='description'>
<!-- description content -->
<p class='description' style="float: left">
{{i.title }}
</p>
<p class='description' style="float: right">
{{i.location}}
</p>
<!-- end description content -->
</div>
<!-- end description div -->
</div>
嗨,永远不会达到其中装载图像中示出了第二种情况下。我的页面保持空白,直到它加载。我很有兴趣找到一个我知道所有图像都已加载的点。我看着你以前的答案,但我不明白你如何确定页面完成加载 – Doopler
我编辑了我的答案,我已经与'$ loaded'混淆了自己。还有两个选项可供探索 – theblindprophet
好的,我明白了!我目前喜欢$ ionicLoading方法,结合使用$ loaded。现在的代码正如我所希望的那样工作,谢谢! – Doopler