setUpLocationSync

function

npm Package @angular/router
Module import { setUpLocationSync } from '@angular/router/upgrade';
Source router/upgrade/src/upgrade.ts

Sets up a location synchronization.

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

function setUpLocationSync(ngUpgrade: UpgradeModule);

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