I want to fix some new panel when window is scrolled but, whenever I scrolled window then $(window).scroll(fucntion(){ }); is not triggered. This function is in my angular controller.
This is at angular controller but when I scroll it isn't triggered
$(window).scroll(function () {
console.log(" i Like it");
//$scope.$apply();
});
I also tried this.
$(document).ready(function(){
$(window).scroll(function () {
console.log(" i Like it");
//$scope.$apply();
});
});
But it's also not working. Please help.