@@ -86,13 +86,13 @@ export class ComponentPortal<T> extends Portal<ComponentRef<T>> {
8686 component : ComponentType < T > ;
8787
8888 /**
89- * [Optional] Where the attached component should live in Angular's *logical* component tree.
89+ * Where the attached component should live in Angular's *logical* component tree.
9090 * This is different from where the component *renders*, which is determined by the PortalOutlet.
9191 * The origin is necessary when the host is outside of the Angular application context.
9292 */
9393 viewContainerRef ?: ViewContainerRef | null ;
9494
95- /** [Optional] Injector used for the instantiation of the component. */
95+ /** Injector used for the instantiation of the component. */
9696 injector ?: Injector | null ;
9797
9898 /**
@@ -101,17 +101,24 @@ export class ComponentPortal<T> extends Portal<ComponentRef<T>> {
101101 */
102102 componentFactoryResolver ?: ComponentFactoryResolver | null ;
103103
104+ /**
105+ * List of DOM nodes that should be projected through `<ng-content>` of the attached component.
106+ */
107+ projectableNodes ?: Node [ ] [ ] | null ;
108+
104109 constructor (
105110 component : ComponentType < T > ,
106111 viewContainerRef ?: ViewContainerRef | null ,
107112 injector ?: Injector | null ,
108113 componentFactoryResolver ?: ComponentFactoryResolver | null ,
114+ projectableNodes ?: Node [ ] [ ] | null ,
109115 ) {
110116 super ( ) ;
111117 this . component = component ;
112118 this . viewContainerRef = viewContainerRef ;
113119 this . injector = injector ;
114120 this . componentFactoryResolver = componentFactoryResolver ;
121+ this . projectableNodes = projectableNodes ;
115122 }
116123}
117124
0 commit comments