📜  如何以角度从一页导航到另一页 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:26.095000             🧑  作者: Mango

代码示例3
const routes: Routes = [
  { path:'', component:LoginComponent},
  { path: 'home', component:HomeComponent },  // you must add your component here
  { path: '**', component:PageNotFoundComponent }
];