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:
crisbeto
2019-10-18 20:48:37 +02:00
committed by Matias Niemelä
parent cb4f803238
commit 1799f621b7
5 changed files with 12 additions and 2 deletions

View File

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

View File

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

View File

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