Class: NgxImReady

NgxImReady

new NgxImReady()

Angular directive to check if the images or videos are loaded.

이미지와 비디오들이 로드가 됐는지 체크하는 Angular directive.

Example
<div NgxImReady
  selector="img"
  (ready)="onReady($event)"
  (readyElement)="onReadyElement($event)"
  (error)="onError($event)">
  <p>isReady: <span id="isReady">{{isReady ? "I'm Ready" : "Loading..."}}</span></p>
  <p>progress: <span id="readyCount">{{readyCount}}</span> / <span id="totalCount">{{totalCount}}</span></p>
  <p>errors: <span id="readyCount">{{errorCount}}</span></p>
  <div class="images" NgxImReadyRegister>
    <img ... />
    <img ... />
  </div>
</div>
comments powered by Disqus