EDIT: I using href and section with id, to scroll to the div with the id specified, in the same component.
I did with a simple href="contato" and a section with id="contato" and works, but... i want to know how to do this without the error "Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'contato' Error: Cannot match any routes. URL Segment: 'contato'" on the console!
<span class="nav-list" id="nav-list">
<div fxFlex fxShow="true" fxHide.sm="true"></div>
<a href="#inicio" class="nav-list-menu" alt="home">
Home
</a>
<a href="#recursos" class="nav-list-menu" alt="Recursos">
Recursos
</a>
<a href="#contato" class="nav-list-menu" alt="Contato">
Contato
</a>
<a (click)="this.login()" class="nav-list-menu enter-button" alt="Entrar no sistema">
Entrar
</a>
</span>
<section id="recursos" style="width: 100%; height: 40px; background-color: white;"></section>