javascript - AngularJS: use jquery with multiple ng-repeat -
i posted question concerning possibility of different scroller div
same class name. works perfectly. here link of thread: scroll multiple div @ same time
lately, i've made changes in code make div
dynamic (with ng-repeat
). since these changes, jquery function no longer works. think javascript executed before various ng-repeat
completed.
my function scroll on container same class name :
var subcatcontainer = $(".sub-category-container"); subcatcontainer.scroll(function() { subcatcontainer.scrollleft($(this).scrollleft()); });
is there solution in order wait ng-repeat
? in directive?
to complete explanation, created : jsfiddle
Comments
Post a Comment