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 3bf1b8a

Browse files
committedFeb 20, 2019
fix: Remove all the children from the AppHostView
1 parent 616c4c2 commit 3bf1b8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nativescript-angular/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class NativeScriptRendererFactory implements RendererFactory2 {
7979
traceLog(`NativeScriptRendererFactory.ngOnDestroy()`);
8080
}
8181

82-
if (this.rootNgView && this.rootNgView.firstChild) {
82+
while (this.rootNgView && this.rootNgView.firstChild) {
8383
this.viewUtil.removeChild(this.rootNgView, this.rootNgView.firstChild);
8484
}
8585
}

0 commit comments

Comments
 (0)
Please sign in to comment.