Comments (8)
i dont understand. if you provide the same source for fallback and loading what are you expecting?
from angular-img-fallback.
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.
from angular-img-fallback.
UPDATE :-1
I removed fallback-src and used only loading-src , and it worked.
Issue
It works only within ng-repeat
perfectly !
Problem occurs when using collection-repeat
.
If collection repeat is used the img src is not updated and still shows fallback/loading src
from angular-img-fallback.
+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.
from angular-img-fallback.
What's collection-repeat
?
Can you provide a complete code sample of what is it that your trying to do?
"load image from ajax" just doesn't make much sense here
from angular-img-fallback.
@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 framework uses angular js wrapper to do so.
ionic has an alternative to ng-repeat
i.e collection-repeat
collection-repeats
are used to improve the performance of list in angular or specifically ionic.
sorry for not mentioning that before.
from angular-img-fallback.
@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.
from angular-img-fallback.
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 collection-repeat
which is not loading ng-src image
even if image is present.
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 !
from angular-img-fallback.
Related Issues (20)
- Relative or absolute ? HOT 1
- loading-src issue HOT 13
- minified distro HOT 5
- Add npm package HOT 2
- Won't load a dynamic image HOT 1
- When the browser tries to re fetch the image for the second time, fallback-src dont work any more HOT 1
- Fallback image should replace loading image if regular image isn't found
- fallback-src not work HOT 2
- Loading-src and fallback doesn't seem to coexist well
- remove base-64 code HOT 3
- Update bower file HOT 2
- Error when building with grunt-uglify HOT 2
- Support for custom classes on error
- Loading and Fallback doesn't work properly together HOT 1
- Directive loadingSrc stop listen changes in the parameter passed to ngSrc HOT 1
- main property in bower manifest should point to runnable code HOT 5
- Fallback-src doesn't set the fallback image if the src is empty HOT 1
- Bower install has incorrect main js name in bower.json HOT 2
- Does the latest commit need a new release? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-img-fallback.