为了账号安全,请及时绑定邮箱和手机立即绑定

如何确定Angular中的上一页URL?

如何确定Angular中的上一页URL?

炎炎设计 2019-12-26 09:15:20
假设我当前在具有URL的页面上/user/:id。现在,从此页面导航到下一页:id/posts。现在有一种方法,这样我就可以检查以前的URL是什么/user/:id。以下是我的路线export const routes: Routes = [  {     path: 'user/:id', component: UserProfileComponent  },  {      path: ':id/posts', component: UserPostsComponet   }];
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 1045 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信