feat(common): add component input binding support for NgComponentOutlet (#51148)

This commit add component input binding support for NgComponentOutlet.

PR Close #51148
This commit is contained in:
hyperlife1119
2023-04-07 00:44:35 +08:00
committed by Andrew Kushnir
parent b5cf5d22e5
commit 29d358170b
4 changed files with 210 additions and 33 deletions
+6 -2
View File
@@ -491,7 +491,7 @@ export class NgClass implements DoCheck {
}
// @public
export class NgComponentOutlet implements OnChanges, OnDestroy {
export class NgComponentOutlet implements OnChanges, DoCheck, OnDestroy {
constructor(_viewContainerRef: ViewContainerRef);
// (undocumented)
ngComponentOutlet: Type<any> | null;
@@ -500,15 +500,19 @@ export class NgComponentOutlet implements OnChanges, OnDestroy {
// (undocumented)
ngComponentOutletInjector?: Injector;
// (undocumented)
ngComponentOutletInputs?: Record<string, unknown>;
// (undocumented)
ngComponentOutletNgModule?: Type<any>;
// @deprecated (undocumented)
ngComponentOutletNgModuleFactory?: NgModuleFactory<any>;
// (undocumented)
ngDoCheck(): void;
// (undocumented)
ngOnChanges(changes: SimpleChanges): void;
// (undocumented)
ngOnDestroy(): void;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<NgComponentOutlet, "[ngComponentOutlet]", never, { "ngComponentOutlet": { "alias": "ngComponentOutlet"; "required": false; }; "ngComponentOutletInjector": { "alias": "ngComponentOutletInjector"; "required": false; }; "ngComponentOutletContent": { "alias": "ngComponentOutletContent"; "required": false; }; "ngComponentOutletNgModule": { "alias": "ngComponentOutletNgModule"; "required": false; }; "ngComponentOutletNgModuleFactory": { "alias": "ngComponentOutletNgModuleFactory"; "required": false; }; }, {}, never, never, true, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NgComponentOutlet, "[ngComponentOutlet]", never, { "ngComponentOutlet": { "alias": "ngComponentOutlet"; "required": false; }; "ngComponentOutletInputs": { "alias": "ngComponentOutletInputs"; "required": false; }; "ngComponentOutletInjector": { "alias": "ngComponentOutletInjector"; "required": false; }; "ngComponentOutletContent": { "alias": "ngComponentOutletContent"; "required": false; }; "ngComponentOutletNgModule": { "alias": "ngComponentOutletNgModule"; "required": false; }; "ngComponentOutletNgModuleFactory": { "alias": "ngComponentOutletNgModuleFactory"; "required": false; }; }, {}, never, never, true, never>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<NgComponentOutlet, never>;
}