import { router as rcRouter } from '@xxxx/client-sdk-js';
private router: Router
router.events.subscribe((event: Event) => {
console.log("event:", event);
if (event instanceof NavigationEnd) {
console.log("window:", window);
const {location} = window;
const fromPath = `${location.pathname}${location.search}${location.hash}`;
console.log("fromPath:", fromPath);
const {url} = event;
rcRouter.pageUrlChanged(fromPath, url);
}
});