airfranceklm / ng-lazy-image

Angular directive for loading responsive image when container (which is preventing reflow) is in viewport.
http://afklm.github.io/ng-lazy-image/
MIT License
351 stars 64 forks source link

any way to pass ng-click into the image tag? #23

Closed surfjedi closed 8 years ago

surfjedi commented 8 years ago

any way to pass ng-click into the image tag?

SquadraCorse commented 8 years ago

Why should you? You can add that to the directive container itself right?

surfjedi commented 8 years ago

True could add it to container but I am trying to refactor a huge code base and we just have alot of img tags with ngsrc and the ng-click on them already..

SquadraCorse commented 8 years ago

This directive doesn't use ng-src, so then if you will you need to move some stuff over. Now you can choose to have seo links arround it or clickable container which makes it beter usable by only focussing on delivering the right image at the right moment.