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

Show default image when load invalid image url #2

Open
ngocongcan opened this issue May 4, 2017 · 2 comments
Open

Show default image when load invalid image url #2

ngocongcan opened this issue May 4, 2017 · 2 comments

Comments

@ngocongcan
Copy link

Hi contributors,
I have used fallback attribute to identify the default image when load the image doesn't load.
<img-loader src="inivalid url" fallback="https://static.pexels.com/photos/194730/pexels-photo-194730-large.jpeg" useImg></img-loader>

However, it does not show as i'd like. Can you take a look, please ?
screen shot 2017-05-04 at 4 14 53 pm

@ihadeed
Copy link
Member

ihadeed commented May 5, 2017

Hey there,

Are you testing this in the browser?

At the moment this feature is not supported fully in the browser. I merged this PR yesterday that should fix this issue partially. I will add more code soon to handle this in the browser as well.

@wizlif
Copy link

wizlif commented May 9, 2017

It doesn't show the fallback on the device but shows it on the browser.
Images in browser
browser
Images in device
device

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

No branches or pull requests

3 participants