Open friktor opened 9 years ago
In this matter I do not mean the creation of the Directive - with this function. But that was the option callback (iterator) - without the need to create a Directive.
Hi @friktor,
I'm trying to understand what you mean, are you looking for a callback to be run, using an angular expression?
<div lazyload="some-url.filetype" lazyload-callback="updateMasonry()"></div>
Currently, you can inject the service into a custom directive and run a function when the loading is complete.
Yes I mean something similar, I think it would be a very useful feature, at least because someone is too lazy to write for his application unnecessary Directive for processing the loaded image.
Yeah I see what you mean. I'm thinking a callback for success and error would be a good addition. Something like this:
<div lazyload="some-url.filetype" lazyload-success="updateMasonry()"></div>
<div lazyload="some-url.filetype" lazyload-error="notify()"></div>
What do you think?
Yes this is a very very good idea )
Just at the moment, this Directive is a very pleasant alternative to the jquery lazyload - and would like to have some "sugar" in this implementation.