URL参数是有一些如何使用代码来添加一个新的URL参数,例如:角2 - 增加需求
http://example.com/mypage?par=1&par2=2
我需要在我的代码是这样的:
if (myVar == 'abc') {
// add a par3=3 without navigate/refresh the page - just to
// add a decoration on the URL for bookmarks purposes,
// for example: when user bookmark it and go back,
//I will be displaying the same dialog box
}
的可能的复制[变更路径PARAMS而不在角度2重装](http://stackoverflow.com/questions/35618463/change-route-params-without-reloading-in-angular-2) –