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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.