【发布时间】:2020-01-27 11:52:39
【问题描述】:
如何使用参数设置默认路由(例如:www.test.com/landing-page?uid=123&mode=front&sid=de8d4)
const routes: Routes = [
{ path: '', redirectTo: 'landing-page', pathMatch: 'full' },
{ path: "landing-page", component: LandingPageComponent },
{ path: '**', redirectTo: '' },
];
我的项目有一个工作流程,在该工作流程中,用户通过其他网站或带有查询字符串数据的应用程序被重定向到我的 Angular 应用程序。是否可以有带参数的默认路由。
【问题讨论】:
标签: html angular typescript angular-material angular-router