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:
@ -45,6 +45,7 @@ import {makePropDecorator} from '../util/decorators';
|
||||
* ```
|
||||
*
|
||||
* @publicApi
|
||||
* @deprecated Since 9.0.0. With Ivy, this property is no longer necessary.
|
||||
*/
|
||||
export const ANALYZE_FOR_ENTRY_COMPONENTS = new InjectionToken<any>('AnalyzeForEntryComponents');
|
||||
|
||||
|
@ -542,6 +542,7 @@ export interface Component extends Directive {
|
||||
* this component. For each component listed here,
|
||||
* Angular creates a {@link ComponentFactory} and stores it in the
|
||||
* {@link ComponentFactoryResolver}.
|
||||
* @deprecated Since 9.0.0. With Ivy, this property is no longer necessary.
|
||||
*/
|
||||
entryComponents?: Array<Type<any>|any[]>;
|
||||
|
||||
|
@ -265,6 +265,7 @@ export interface NgModule {
|
||||
* using one of the imperative techniques, such as `ViewContainerRef.createComponent()`.
|
||||
*
|
||||
* @see [Entry Components](guide/entry-components)
|
||||
* @deprecated Since 9.0.0. With Ivy, this property is no longer necessary.
|
||||
*/
|
||||
entryComponents?: Array<Type<any>|any[]>;
|
||||
|
||||
|
Reference in New Issue
Block a user