I'm trying to use the routerLink property of the "tag to" in the html that loads when the page starts.
This works well within the template of a component, but in this case it is not necessary to render a component, since the menu is static.
I do not use href
because although it works, it reloads the whole page.
<a href="/personal"> <!-- functiona pero recarga la pagina-->
<a routerLink="/personal"> <!-- no funciona -->
Angular routes:
const appRoutes: Routes = [
{ path: "", redirectTo: "/personal", pathMatch: "full" },
{ path: "personal", component:PersonalComponent },