Hi, I'm using your wrapper and needed to bind some behavior to the scroll, in this case the 'scrollend' event (very useful to implement an infinite scroll).
To see how it worked in my solution I added this on the link of the directive;
if(attr.scrollend)
element.bind('scrollend', function () {
scope.$apply(attr.scrollend);
});
and this on the html...
<scrollable scrollend="loadMyObjects()">
It worked like a charm.
Now that we are here, related to this particular event, there is a hack that causes this event to fire twice, maybe you could see if the hack is still needed.
Hi, I'm using your wrapper and needed to bind some behavior to the scroll, in this case the 'scrollend' event (very useful to implement an infinite scroll).
To see how it worked in my solution I added this on the link of the directive;
and this on the html...
It worked like a charm.
Now that we are here, related to this particular event, there is a hack that causes this event to fire twice, maybe you could see if the hack is still needed.
Let me know what you think about this, thanks.