Each section of my page is a separate component, which is located one after another while scrolling eg:
<sectionA></sectionA>
<sectionB></sectionB>
<sectionC></sectionC>
All the examples I've seen where creating routings to components on different pages, which where (in easiest words) clearing the container <router-outlet></router-outlet> and filling it with the component assigned to given route.
What about the situation I've described, where all components are located on the same page and visible ?
How to set a proper route when scrolled to given section? The idea I have is to create a directive adding classes if sections are visible or not, and assigning a onscroll listener from the main module checking which section is currently visible and assigning the route respectively. Is this a correct approach?
How to link to a given section? Using regular href=#sectionId or the built in angular link directives?