Skip to content

Instantly share code, notes, and snippets.

@lukasasorensen
Created May 22, 2018 19:24
Show Gist options
  • Select an option

  • Save lukasasorensen/1d0a9854438b28bd10d7acaf448cdb5d to your computer and use it in GitHub Desktop.

Select an option

Save lukasasorensen/1d0a9854438b28bd10d7acaf448cdb5d to your computer and use it in GitHub Desktop.

Revisions

  1. lukasasorensen created this gist May 22, 2018.
    8 changes: 8 additions & 0 deletions image-loader-example.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <img
    src="{{profileImage?.url?.xs}}"
    image-loader
    [imgSize]="lg"
    [fallback]="/assets/fallback-image.jpg"
    (emitOnError)="handleImageError()"
    #profileImg
    />