GithubHelp home page GithubHelp logo

Comments (8)

dcohenb avatar dcohenb commented on July 18, 2024

i dont understand. if you provide the same source for fallback and loading what are you expecting?

from angular-img-fallback.

uzumakinaruto123 avatar uzumakinaruto123 commented on July 18, 2024

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.

uzumakinaruto123 avatar uzumakinaruto123 commented on July 18, 2024

@dcohenb

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.

stefensuhat avatar stefensuhat commented on July 18, 2024

+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.

dcohenb avatar dcohenb commented on July 18, 2024

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.

uzumakinaruto123 avatar uzumakinaruto123 commented on July 18, 2024

@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.

dcohenb avatar dcohenb commented on July 18, 2024

@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.

uzumakinaruto123 avatar uzumakinaruto123 commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.