refactor(core): deprecate entryComponents (#33205)
With Ivy the `entryComponents` array isn't necessary anymore. These changes mark it as deprecated so that it can be removed in a future version. PR Close #33205
This commit is contained in:
5
tools/public_api_guard/core/core.d.ts
vendored
5
tools/public_api_guard/core/core.d.ts
vendored
@ -18,6 +18,7 @@ export interface AfterViewInit {
|
||||
ngAfterViewInit(): void;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare const ANALYZE_FOR_ENTRY_COMPONENTS: InjectionToken<any>;
|
||||
|
||||
export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
|
||||
@ -116,7 +117,7 @@ export interface Component extends Directive {
|
||||
animations?: any[];
|
||||
changeDetection?: ChangeDetectionStrategy;
|
||||
encapsulation?: ViewEncapsulation;
|
||||
entryComponents?: Array<Type<any> | any[]>;
|
||||
/** @deprecated */ entryComponents?: Array<Type<any> | any[]>;
|
||||
interpolation?: [string, string];
|
||||
moduleId?: string;
|
||||
preserveWhitespaces?: boolean;
|
||||
@ -581,7 +582,7 @@ export declare type NgIterable<T> = Array<T> | Iterable<T>;
|
||||
export interface NgModule {
|
||||
bootstrap?: Array<Type<any> | any[]>;
|
||||
declarations?: Array<Type<any> | any[]>;
|
||||
entryComponents?: Array<Type<any> | any[]>;
|
||||
/** @deprecated */ entryComponents?: Array<Type<any> | any[]>;
|
||||
exports?: Array<Type<any> | any[]>;
|
||||
id?: string;
|
||||
imports?: Array<Type<any> | ModuleWithProviders<{}> | any[]>;
|
||||
|
Reference in New Issue
Block a user