在其他网站点击的角度应用程序中打开一个网址路径

问题描述 投票:0回答:1

在我们的应用程序中,我们正在通过电子邮件向用户发送用户帐户激活链接。在单击URL时,我们要在角度应用程序中打开URL。但这正在打开应用程序的根目录。

useHash:true也无济于事。

imports: [RouterModule.forRoot(routes, {scrollPositionRestoration: 'enabled',useHash : true, })],

是否有任何可用的角度配置,可以帮助我们直接打开URL?

OR

我们可以访问在angular的应用程序组件的浏览器地址栏中输入的url的值吗?

angular angular-routing angular-bootstrap
1个回答
0
投票

这意味着您在您的路线上有误尝试像这样检查您的组件路线:

{ path: '**', component: PageNotFoundComponent }
{ path: 'ResetPassword', component: ResetPasswordComponent },   
© www.soinside.com 2019 - 2024. All rights reserved.