mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
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:
@ -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;
|
Reference in New Issue
Block a user