我使用的是Angular 2
,我需要检测图像是否已加载到图像标签中.
有这样的活动吗?
比如:
<img [src]="imagesource" [loaded]="dosomething()">
我使用的是Angular 2
,我需要检测图像是否已加载到图像标签中.
有这样的活动吗?
比如:
<img [src]="imagesource" [loaded]="dosomething()">
<img [src]="imagesource" (load)="dosomething()">