在使用HashLocationStrategy时, 我可以通过手动更改浏览器地址栏中的地址来更改路由,而无需重新加载页面.即从导航mysite/#/home到mysite/#/profile
mysite/#/home
mysite/#/profile
但是,如果我使用PathLocationStrategy(它是默认位置策略),当我尝试做同样的事情时,我有不需要的页面重新加载.即从导航mysite/home到mysite/profile
mysite/home
mysite/profile
有可能解决这个问题吗?
我正在使用Angular 2.0.0-beta17
html5-history angular2-routing angular
angular ×1
angular2-routing ×1
html5-history ×1