We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcde284 commit 1dca81bCopy full SHA for 1dca81b
nativescript-angular/common/detached-loader.ts
@@ -49,6 +49,13 @@ export class DetachedLoader implements OnDestroy {
49
}
50
51
public loadWithFactory<T>(factory: ComponentFactory<T>): ComponentRef<T> {
52
- return this.containerRef.createComponent(factory, this.containerRef.length, this.containerRef.injector, null);
+ const componentRef = factory.create(this.containerRef.injector);
53
+ this.appRef.attachView(componentRef.hostView);
54
+
55
+ this.disposeFunctions.push(() => {
56
+ this.appRef.detachView(componentRef.hostView);
57
+ componentRef.destroy();
58
+ });
59
+ return componentRef;
60
61
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments