<nav>
<a routerlink="/students"><button mat-stroked-button class="button"><mat-icon class="icon">face</mat-icon><br><br><br>students</button></a>
</nav>
Run Code Online (Sandbox Code Playgroud)
const routes: Routes = [
{path: 'students', component: StudentsComponent},
];
Run Code Online (Sandbox Code Playgroud)
角度路由器链接不起作用。还导入了 RoutingComponent app.module 等。