Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fallback to img tag when loaded in browser #45

Merged
merged 1 commit into from
May 4, 2017

Conversation

yannbf
Copy link
Contributor

@yannbf yannbf commented May 1, 2017

This PR adds support for browser when there's an error loading the image.

Ibby, a few considerations:

Stuff I tried and didn't work:

  • this._element.onerror = function() { }
  • this._element.nativeElement.onerror = function() { }
  • this._renderer.listen(this.element, 'onerror', function() { });

Regarding when the user uses useImg as false, apparently everything works as expected already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants