Pentiado / angular-lazy-img

Lightweight lazy load images plugin. Only 1kb after gziping. Pure JavaScript, only Angular as dependency.
MIT License
178 stars 66 forks source link

make it work with filters #2

Closed Mantish closed 9 years ago

Mantish commented 10 years ago

The plugin works fine except it doesn't work well with filters. I'm not sure if it's possible

Example:

<li ng-repeat="product in products | filter:category">
    <img lazy-img="{{ product.mainImg }}" />
  </li>
mbrammer commented 9 years ago

Same problem here. @Pentiado Can you provide a fix?

mbrammer commented 9 years ago

@Pentiado Just figured out that there is a newer codebase in your source than in the release folder. Is there a reason for that? The newest version compiled from the source is working with filters. So you can use that @Mantish.

Pentiado commented 9 years ago

I probably just forgot to combine src or to commit it when I did it. I've built this plugin so long ago that I don't really remember. With my last commit all stuff from source got combined and landed in release