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