title: Best practice for when element is visible on the screen?
body: <p>In angular, I want to trigger a function and/or set a css-class once an element is actually visible on the screen, as in once you scroll down for example. What's the best practice for this? </p>