Merge pull request #2522 from NativeScript/raikov/fix-livesync-css-angular

Fixed: CSS is not automatically livesynced in angular apps
This commit is contained in:
tzraikov
2016-08-01 16:22:04 +03:00
committed by GitHub

View File

@ -112,8 +112,8 @@ export function __onLiveSync() {
// Reload app.css in case it was changed. // Reload app.css in case it was changed.
loadCss(); loadCss();
// Reload current page. global.__onLiveSyncCore();
frame.reloadPage();
} catch (ex) { } catch (ex) {
// Show the error as modal page, save reference to the page in global context. // Show the error as modal page, save reference to the page in global context.
ensureBuilder(); ensureBuilder();
@ -121,3 +121,9 @@ export function __onLiveSync() {
global.errorPage.showModal(); global.errorPage.showModal();
} }
} }
export function __onLiveSyncCore() {
// Reload current page.
frame.reloadPage();
}
global.__onLiveSyncCore = __onLiveSyncCore;