Need help! I'm using Angular 4. Where am using a sidebar as a separate component and showing the respective data on the right side of the sidebar. (i.e, if the user click link A1 on the sidebar, it should show A1's content on top to the right side of the sidebar). But Its not working I also tried using simple HTML href attribute to move to the particular div. It worked fine , But where I get the problem was When the user Clicks B's Link the page again starts loading the page again since B is another component. Is there any solution for this in angular?
And also If i scrolled to the middle of A's container and after clicking the link B it is not showing the container top it simply showing from the middle where i left the Container A. Any Solution ?