how to set value for window.pageyoffset in angular code example Example: pageyoffset jquery $(window).scrollTop()