Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b99c997

Browse files
author
Tsvetan Raikov
committedJul 28, 2016
Fixed: CSS is not automatically livesynced in angular apps
1 parent 895845d commit b99c997

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

‎nativescript-angular/application.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ export function nativeScriptBootstrap(appComponentType: any, customProviders?: P
184184
}
185185

186186
// Patch livesync
187-
const _baseLiveSync = global.__onLiveSync;
188-
global.__onLiveSync = function () {
189-
rendererLog("LiveSync Started");
187+
const _baseLiveSyncCore = global.__onLiveSyncCore;
188+
global.__onLiveSyncCore = function () {
189+
rendererLog("ANGULAR LiveSync Started");
190190
if (bootstrapCache) {
191191
onBeforeLivesync.next(lastBootstrappedApp ? lastBootstrappedApp.get() : null);
192192

@@ -203,8 +203,7 @@ global.__onLiveSync = function () {
203203
}
204204
frame.navigate(newEntry);
205205
}
206-
}
207-
else {
208-
_baseLiveSync();
206+
} else {
207+
_baseLiveSyncCore();
209208
}
210209
};

0 commit comments

Comments
 (0)
Please sign in to comment.