假設(shè)我當(dāng)前在具有URL的頁(yè)面上/user/:id?,F(xiàn)在,從此頁(yè)面導(dǎo)航到下一頁(yè):id/posts?,F(xiàn)在有一種方法,這樣我就可以檢查以前的URL是什么/user/:id。以下是我的路線(xiàn)export const routes: Routes = [ { path: 'user/:id', component: UserProfileComponent }, { path: ':id/posts', component: UserPostsComponet }];
如何確定Angular中的上一頁(yè)URL?
炎炎設(shè)計(jì)
2019-12-26 09:15:20