If I understand the question correctly, you can detect the scroll event (the browser's scroller or even a specific element's scroller) and apply some logic to turn a flag on and off (eg, borderVisible - and for example turn it on when the "scrollY" exceeds a certain threshold) and bind this flag to your html wherein you can apply some ngStyle to do a dynamic styling. Does this answer your question?