[angularjs] Use angular to build the project, and the pictures lazily load the data

demo:

 

<ion-view view-title="{{chat.name}}">
  <style type="text/css">
    .image-loader-container{
        height: 40px;
        position: absolute;
        top: 50%;
        margin-top: -13px;
        left: 18px;
      }
  </style>
  <ion-content class="padding" lazy-scroll>
  <h5>点击图片有弹窗</h5>
    <div ng-click="tanpop(chat)">
        <!-- <img ng-src="./img/noimg.png" style="width: 64px; height: 64px"> -->
        <!--  ion-content上加lazy-scroll-->
      <img style="width: 64px; height: 64px" image-lazy-loader="spiral" image-lazy-src="{{chat.face}}" 
        src="./img/noimg.png" onerror="this.src='./img/noimg.png'"  image-lazy-distance-from-bottom-to-load="200"/> 
        <p>
          {{chat.lastText}}
        </p>
    </div>
  </ion-content>
</ion-view>

 

 

 

 

 Relevant information

  https://github.com/paveisistemas/ionic-image-lazy-load

  https://blog.csdn.net/QQ417431233/article/details/51226435

  https://ionicframework.com/docs/v1/api/directive/ionSpinner/

  https://codepen.io/anon/pen/BxJNaz

  https://blog.csdn.net/zuoyiran520081/article/details/72236717

    

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325833330&siteId=291194637