jquery - scrolling event not triggering Javascript -


$(window).scroll(function()         {             if($(window).scrolltop() == $(document).height() - $(window).height())             {                 alert('d');             }          }); 

is there wrong above code? wish infinite scrolling stuck in phase. no error in console wonder why. it's working in pure js, not in angularjs's controller.


Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -