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:
shlomiassaf
2016-09-01 14:00:14 +03:00
committed by Matias Niemelä
parent c0178de0e2
commit 8578682dcf
7 changed files with 403 additions and 1 deletions

View File

@ -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;