As far as I know, the slider is outside the DOM, so it can only be read through the above 2 methods.

Or am I mistaken and does Angular have its gadgets for this case?

  • I do not know what you mean by gadgets, but no one forbids you to use window.pageYoffset in a component at any time. If you need it in a template - for example, make a function that returns it and use it <div>{{getYoffset()}}</div> - Dimanoid

0