ocombe / ocLazyLoad

Lazy load modules & components in AngularJS
https://oclazyload.readme.io
MIT License
2.63k stars 510 forks source link

Lazy Loading Angular Cards #333

Open alabgold opened 8 years ago

alabgold commented 8 years ago

Hello, my site is using angular cards to hold images. They are angular material outlined in this demo: https://material.angularjs.org/latest/demo/card Im relatively new to angular and I was wondering if ocLazyLoad could be adapted to work on these cards?

alo commented 8 years ago

Hi! I think you are mixing concepts.

If you are using Angular material you can use virtual repeat I think this will gave you the effect that you want.

To estrictly "lazy load" your images you can use other modules angular-lazy-img or ng-lazy-image or any other ...

And you can use oc.LazyLoad to load Angular modules and other libraries.

Related question

I hope that could help you!