Skip to content

Commit

Permalink
fix(load): fire load event only when image is done loading (#200)
Browse files Browse the repository at this point in the history
closes #195
  • Loading branch information
madoBaker authored Sep 21, 2018
1 parent d32f351 commit ce123dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/img-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ export class ImgLoaderComponent implements OnInit {
`url("${imageUrl || this.fallbackUrl}")`,
);
}

this.load.emit(this);
if(stopLoading) {
this.load.emit(this);
}
}
}

0 comments on commit ce123dc

Please sign in to comment.