toddmotto / echo

Lazy-loading images with data-* attributes

Home Page:http://toddmotto.com/labs/echo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using echo.js with Angular.js

elemenofi opened this issue · comments

<img src="css/img/preloader.gif" alt data-echo="{{item.image}}">

I want to output a javascript object property which points to an img to be loaded by echo.js data-echo but it is failing. I am not exprienced enough to understand how to output the actual string instead of the javascript expression.

Is there any direction you could point me to in order to make this work with angular? I would appreciate it because I like the library a lot.

Thanks for your time.

I think it actually works, my bad.

Having an issue. I see the image load into the url, but not the view.

Using AngularJS v1.3.8

Images not loading. Tried a static url and a dynamic version. I can see the image come in on the dom, but it is not loading into the view.

@waltercolindres Did you ever resolve this?

@stramel No. Never did. :(