File tree 2 files changed +6
-11
lines changed
2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ export class AppHostView extends ContentView {
26
26
}
27
27
28
28
this . _content = value ;
29
- this . _content . parentNode = this ;
29
+
30
+ if ( value ) {
31
+ this . _content . parentNode = this ;
32
+ }
30
33
31
34
this . ngAppRoot = value ;
32
35
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ export class NativeScriptPlatformRef extends PlatformRef {
172
172
bootstrapLog ( `Angular bootstrap bootstrap done. uptime: ${ uptime ( ) } ` ) ;
173
173
174
174
if ( ! autoCreateFrame ) {
175
- rootContent = this . extractContentFromHost ( tempAppHostView ) ;
175
+ rootContent = tempAppHostView . content ;
176
176
}
177
177
178
178
lastBootstrappedModule = new WeakRef ( moduleRef ) ;
@@ -233,7 +233,7 @@ export class NativeScriptPlatformRef extends PlatformRef {
233
233
onAfterLivesync . next ( { moduleRef } ) ;
234
234
235
235
if ( ! autoCreateFrame ) {
236
- rootContent = this . extractContentFromHost ( tempAppHostView ) ;
236
+ rootContent = tempAppHostView . content ;
237
237
}
238
238
239
239
lastBootstrappedModule = new WeakRef ( moduleRef ) ;
@@ -282,12 +282,4 @@ export class NativeScriptPlatformRef extends PlatformRef {
282
282
frame . navigate ( { create : ( ) => { return page ; } } ) ;
283
283
return { page, frame } ;
284
284
}
285
-
286
- private extractContentFromHost ( tempAppHostView : AppHostView ) {
287
- const result = tempAppHostView . content ;
288
- tempAppHostView . content = null ;
289
- tempAppHostView . ngAppRoot = result ;
290
- result . parentNode = tempAppHostView ;
291
- return result ;
292
- }
293
285
}
You can’t perform that action at this time.
0 commit comments