-
Notifications
You must be signed in to change notification settings - Fork 34
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
specifying loading-src always loads fallback image ! #21
Comments
i dont understand. if you provide the same source for fallback and loading what are you expecting? |
No.i dont want to provide same src. i just tried that second option ! so in the first one i added only loading-src . I was expecting plugins default loading-src here. but got nothing different. |
UPDATE :-1 I removed fallback-src and used only loading-src , and it worked. Issue It works only within Problem occurs when using |
+1 I'm experiencing this. When I try load image from ajax request, the image always shown loading/fallback src. It never load the real image. But if I put the image directly (no ajax request), the real image is load properly. |
What's |
@dcohenb ohh really sorry for that ! i forgot that its not a ionic framework. well just to explain in short, ionic framework in a hybrid app development framework in which apps are based on javascript. ionic has an alternative to
sorry for not mentioning that before. |
@uzumakinaruto123 Thanks for the explanation, can you give me a code sample or a JSFiddle replicating the bug you're talking about? i really want to help you but i need to see the problem as i can't understand it from the description. |
i tried my best to reproduce the issue ! i wonder if this is ionic issue .. Here is the codepen http://codepen.io/uzumakinaruto1/pen/wGPNbe on this codepen if you check second list its ng-repeat loads it correctly. you can replace that 'collection' with 'ng' and you will see that it also works on second list. P.S :- loading-src is online image just for demo purpose Thanks ! |
If i do this :-
<img ng-src="{{data.resimage}}" fallback-src="img/default{{ imageNo }}.jpg" alt="" />
Works great
As soon as i add
loading-src
like dis :-<img ng-src="{{data.resimage}}" loading-src fallback-src="img/default{{ imageNo }}.jpg" alt="" />
IT WILL ALWAYS LOAD FALLBACK
I even tried this :-
<img ng-src="{{data.resimage}}" loading-src="img/default{{ imageNo }}.jpg" fallback-src="img/default{{ imageNo }}.jpg" alt="" />
Help is appreciated ! Thanks.
The text was updated successfully, but these errors were encountered: