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

Failed to load image when image property is not "url" #79

Open
maheshtc opened this issue May 29, 2017 · 1 comment
Open

Failed to load image when image property is not "url" #79

maheshtc opened this issue May 29, 2017 · 1 comment

Comments

@maheshtc
Copy link

I have been trying to integrate this angular plugin. But I stuck at one place where my image object do not have property name "url". It is "imgUrl" and not possible to alter this property name to "url".
What should I pass in openModel method when image property name is not same? Please guide me to correct this issue.

@viktorhunko
Copy link

viktorhunko commented Jun 8, 2017

@maheshtc you can set proper field name in your configs:
LightboxProvider.getImageUrl = image => { return image. imgUrl; };

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

2 participants