setUpLocationSync
Sets up a location synchronization.
setUpLocationSync(ngUpgrade: UpgradeModule, urlType: "path" | "hash" = 'path')
参数
ngUpgrade | UpgradeModule | |
urlType | "path" | "hash" | 可选. 默认值是 |
说明
History.pushState does not fire onPopState, so the Angular location doesn't detect it. The workaround is to attach a location change listener