fix(core): support ngTemplateOutlet
in production mode (#12921)
Fixes #12911
This commit is contained in:

committed by
Chuck Jazdzewski

parent
dae0d0fd66
commit
462879887a
@ -232,8 +232,10 @@ export abstract class AppView<T> {
|
||||
if (nextSibling) {
|
||||
this.visitRootNodesInternal(this._directRenderer.insertBefore, nextSibling);
|
||||
} else {
|
||||
this.visitRootNodesInternal(
|
||||
this._directRenderer.appendChild, this._directRenderer.parentElement(prevNode));
|
||||
const parentElement = this._directRenderer.parentElement(prevNode);
|
||||
if (parentElement) {
|
||||
this.visitRootNodesInternal(this._directRenderer.appendChild, parentElement);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.renderer.attachViewAfter(prevNode, this.flatRootNodes);
|
||||
|
Reference in New Issue
Block a user