在我的 Angular 應(yīng)用程序中我有這個路由文件:const routes: Routes = [ { path: "", children: [ { path: "", redirectTo: "/my-default-page", pathMatch: "full" }, { path: "reset_password", component: ResetPassword, canActivate: [MyAuthGuard], children: [{ path: "**", redirectTo: "/reset_password" }] } ] }}];我不想通過重定向,并且當路由:將是這樣的:/reset_password/blabalabla它不會重定向我,而只是加載組件 ResetPassword并保持 url 不變建議?
Angular 路由器:如何根據(jù)路由器的一部分重定向到組件鏈接
慕無忌1623718
2023-11-11 21:25:13