Reputation: 1668
I am new to angularjs. And i dont know how to bind scroll event to the html element select
.this is my directive to adding scrolling functionality.
myApp.directive('scrolly', function () {
return {
restrict: 'A',
link: function (scope, element, attrs) {
var raw = element[0];
console.log(element[0]);
element.bind('scroll', function () {
console.log('inside scroll');
});
}
};
});
Here I attached my fiddle link.Please someone help me to fix this issue.
Upvotes: 0
Views: 650