setUpLocationSync
Sets up a location synchronization.
setUpLocationSync(ngUpgrade: UpgradeModule, urlType: "path" | "hash" = 'path')
Parameters
ngUpgrade
|
UpgradeModule |
|
urlType
|
"path" | "hash" |
Optional. Default is |
Description
History.pushState does not fire onPopState, so the Angular location doesn't detect it. The workaround is to attach a location change listener