From ce83da8ba3dd73fe562a01328ced4ede240059df Mon Sep 17 00:00:00 2001 From: Tsvetan Raikov Date: Thu, 28 Jul 2016 14:59:16 +0300 Subject: [PATCH] Fixed: CSS is not automatically livesynced in angular apps --- tns-core-modules/application/application-common.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tns-core-modules/application/application-common.ts b/tns-core-modules/application/application-common.ts index bd9201d0b..b91c27df7 100644 --- a/tns-core-modules/application/application-common.ts +++ b/tns-core-modules/application/application-common.ts @@ -112,8 +112,8 @@ export function __onLiveSync() { // Reload app.css in case it was changed. loadCss(); - // Reload current page. - frame.reloadPage(); + global.__onLiveSyncCore(); + } catch (ex) { // Show the error as modal page, save reference to the page in global context. ensureBuilder(); @@ -121,3 +121,9 @@ export function __onLiveSync() { global.errorPage.showModal(); } } + +export function __onLiveSyncCore() { + // Reload current page. + frame.reloadPage(); +} +global.__onLiveSyncCore = __onLiveSyncCore; \ No newline at end of file