I have the following routes defined:
const appRoutes: Routes = [
{ path: 'signup', component: SignupComponent },
{ path: 'home', component: HomeComponent },
{ path: '**', component: HomeComponent }
];
Accessing www.mysite.com displays my HomeComponent which is fine. But when I click my menu link to navigate back to the homepage it takes me to www.mysite.com/home
Link code below:
<a href="home" [routerLink]="['home']" class="nav-link active">Home</a>
How can I make this link navigate to the main url www.mysite.com?
<a href="home" [routerLink]="['/']" class="nav-link active">Home</a>