This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

setUpLocationSync

Sets up a location synchronization.

See more...

      
      setUpLocationSync(ngUpgrade: UpgradeModule)
    

Parameters

ngUpgrade

Type: 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