1)如何在Angular2中获取激活路径的完整URL?我知道我可以调用window.location.href但是想知道是否有Angular方式.
2)有没有办法“建立”网址?如果我知道我想要的路线和所述路线的参数,我可以构建完整的URL吗?
router.navigateByUrl("/team/33/user/11"); // Navigate without updating the URL router.navigateByUrl("/team/33/user/11",{ skipLocationChange: true});
@L_502_0@