I have made one Plunker where I want to hide To The Top button initially and the show it when the screen is scrolled down. I am not able to capture scroll event inside directive. I have followed below Urls:
I have even added the overflow: scroll; class to main div, as per suggested by the second url
What am I missing here