This repository has been archived by the owner on Sep 16, 2022. It is now read-only.
NgIf initiated by an ComponentFactory thows an error when trying to copy an NgContent #1943
Open
4 tasks done
I have a Component which is used as a “redirection route”. The purpose of the component is to load another component (in this code sample
InnerComponent
). If loading that component happens viaDynamicComponent
an error is thrown. IfInnerComponent
is instantiated from the template ofAppCmp
with the component’s selector, all is fine.Note: this issue arises when the component being instantiated uses
<ng-content></ng-content>
.My workaround was to wrap the
InnerComponent
with another one , then it works properly.The text was updated successfully, but these errors were encountered: