I have two areas in my html. All two areas can only horizontal scroll. What I want to realize is, if I horizontal scroll one area, another area can get the same horizontal scroll offset. How to realize that in angularjs? I try to use
angular.element(document.getElementById('xxx')).bind('scroll', function() {
...
})
But it does no use. Anyone can tell me how?