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

Won't load a dynamic image #16

Closed
jjravleuven opened this issue Sep 27, 2015 · 1 comment
Closed

Won't load a dynamic image #16

jjravleuven opened this issue Sep 27, 2015 · 1 comment

Comments

@jjravleuven
Copy link

So I've noticed an interesting little bug...

works fine

will not work at all, it renders the following error: "net::ERR_TOO_MANY_REDIRECTS"

so basically this is only a useful plug-in if we're dealing w/ static content - not if we're dealing with dynamic content....

@ckosloski
Copy link

I downloaded the source and changed two lines to fix this issue for me.

Line 25 changed to
.directive('loadingSrc', ['$interpolate', function($interpolate) {

Line 32 changed to
img.src = $interpolate(attr.imgSrc)(scope);

@dcohenb dcohenb closed this as completed in 3c6ac19 Mar 3, 2016
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