如何在angular2中实现angular2和spinner隐藏的微调器?

时间:2017-03-17 05:57:09

标签: html5 angular typescript

我在图像加载时间上有一些延迟,我想要显示一个微调器,并且在图像加载时间之后,微调器应该隐藏。在角度2平台中实现此功能的正确方法是什么。

        <div id='panId' class="container-fluid" >

这是图片加载,

            <img name="imageName1" mouseWheel style.width="{{imgWidth}}" (mouseWheelUp)="mouseWheelUpFunc($event)" (mouseWheelDown)="mouseWheelDownFunc()" 

                *ngIf="showImage" id="mainImage" src="{{imageVisible ? droppedImage: firtsImageToBind}}" class="imagepics mg-image "

                alt="loading..." />


            <img  name="imageName2" id="mainImage" mouseWheel style.width="{{imgWidth}}" (mouseWheelUp)="mouseWheelUpFunc($event)"

                (mouseWheelDown)="mouseWheelDownFunc()" class="mg-image " *ngIf="zoomImageVisible" src="{{zoomedImage}}">
        </div>


</div>

1 个答案:

答案 0 :(得分:1)