I'm trying to use anchor tags to navigate to a certain section of a page. I referred to this post and used the suggested solution. Although the solution works, I get this console error:
Error: Cannot match any routes. URL Segment: 'helpComp'
where helpComp is the id of div I'm navigating to.
My guess is that the # conflicts with the HashLocationStrategy which I am required to use. Can someone suggest an alternative to using the anchor and # for navigating within the page or other ideas?
I can't share my code but here is the general idea:
<a href="#helpComp">Step 1</a>
<p id="helpComp">Contents</p>
When I click on Step 1, it takes me to the correct section of the page but the console displays the above error.