AngularJS code for when i scrolled to bottom of page

Manivannan Murugavel
1 min readJan 30, 2017

$document.bind(‘scroll’, function(){

if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight-1) {
alert(“you’re at the bottom of the page”);
console.log(“You are reached to bottom”);

}
});

--

--