A little of your code would be useful to see what you currently have and what might be wrong with it.
In your dashboard.component.html file you would want to have a button or link element () which links to your router:
<a routerLink="/dashboard/profile">Login</a>
Your app-routing.module.ts should have something along the lines of:
// standard imports
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
// importing your component to route to
import { DashboardProfileComponent } from './dashboardprofile/dashboardprofile.component';
// your route
const routes: Routes = [
{path: 'dashboard/profile', component: DashboardProfileComponent},
];
// standard
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
Don't forget to import your routing module in your app.module.ts.
app.module.ts
import { AppRoutingModule } from './app-routing.module';