feat(NgComponentOutlet): add NgComponentOutlet directive
Add NgComponentOutlet directive that can be used to dynamically create host views from a supplied component. Closes #11168 Takes over PR #11235
This commit is contained in:

committed by
Matias Niemelä

parent
c0178de0e2
commit
8578682dcf
10
tools/public_api_guard/common/index.d.ts
vendored
10
tools/public_api_guard/common/index.d.ts
vendored
@ -117,6 +117,16 @@ export declare class NgClass implements DoCheck {
|
||||
ngDoCheck(): void;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class NgComponentOutlet implements OnChanges {
|
||||
componentRef: ComponentRef<any>;
|
||||
ngComponentOutlet: Type<any>;
|
||||
ngComponentOutletContent: any[][];
|
||||
ngComponentOutletInjector: Injector;
|
||||
constructor(_cmpFactoryResolver: ComponentFactoryResolver, _viewContainerRef: ViewContainerRef);
|
||||
ngOnChanges(changes: SimpleChanges): void;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class NgFor implements DoCheck, OnChanges {
|
||||
ngForOf: any;
|
||||
|
Reference in New Issue
Block a user