填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

setUpLocationSync

Sets up a location change listener to trigger history.pushState. Works around the problem that onPopState does not trigger history.pushState. Must be called after calling UpgradeModule.bootstrap.

setUpLocationSync(ngUpgrade: UpgradeModule, urlType: "path" | "hash" = 'path')
      
      setUpLocationSync(ngUpgrade: UpgradeModule, urlType: "path" | "hash" = 'path')
    
参数
ngUpgrade UpgradeModule

The upgrade NgModule.

urlType "path" | "hash"

可选. 默认值是 'path'.

The location strategy.

参见