W3cubDocs

/Angular 7

setUpLocationSync

function

Sets up a location synchronization.

See more...

setUpLocationSync(ngUpgrade: UpgradeModule)

Parameters
ngUpgrade UpgradeModule

Description

History.pushState does not fire onPopState, so the Angular location doesn't detect it. The workaround is to attach a location change listener

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/router/upgrade/setUpLocationSync