啥是重定向路由?
在用戶訪問一個特定的地址時,將其重定向到另一個指定的地址。
http://localhost:4200/home
const routes: Routes = [
{ path : ' ', redirectTo:' /home', pathMatch:' full ' },
{ path:'home' , component: 'HomeComponent' }
];
啥是重定向路由?
在用戶訪問一個特定的地址時,將其重定向到另一個指定的地址。
http://localhost:4200/home
const routes: Routes = [
{ path : ' ', redirectTo:' /home', pathMatch:' full ' },
{ path:'home' , component: 'HomeComponent' }
];