diff --git a/tns-core-modules/ui/frame/frame-common.ts b/tns-core-modules/ui/frame/frame-common.ts index 4b5da5ed8..ebf8970f0 100644 --- a/tns-core-modules/ui/frame/frame-common.ts +++ b/tns-core-modules/ui/frame/frame-common.ts @@ -24,7 +24,7 @@ function onLivesync(args: EventData): void { } try { - reloadPage(); + g.__onLiveSyncCore(); } catch (ex) { // Show the error as modal page, save reference to the page in global context. g.errorPage = parse(``); @@ -74,6 +74,9 @@ export function reloadPage(): void { } } +// attach on global, so it can be overwritten in NativeScript Angular +(global).__onLiveSyncCore = reloadPage; + export function resolvePageFromEntry(entry: NavigationEntry): Page { let page: Page;