Skip to content

Commit 5bc0b9d

Browse files
alan-agius4vikerman
authored andcommitted
refactor(@schematics/angular): deprecate component entryComponents
Since version 9.0.0 with Ivy, entryComponents is no longer necessary
1 parent 4af9a8a commit 5bc0b9d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/schematics/angular/component/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@
128128
"entryComponent": {
129129
"type": "boolean",
130130
"default": false,
131-
"description": "When true, the new component is the entry component of the declaring NgModule."
131+
"description": "When true, the new component is the entry component of the declaring NgModule.",
132+
"x-deprecated": "Since version 9.0.0 with Ivy, entryComponents is no longer necessary."
132133
},
133134
"lintFix": {
134135
"type": "boolean",

packages/schematics/angular/utility/ast-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ export function addBootstrapToModule(source: ts.SourceFile,
537537

538538
/**
539539
* Custom function to insert an entryComponent into NgModule. It also imports it.
540+
* @deprecated - Since version 9.0.0 with Ivy, entryComponents is no longer necessary.
540541
*/
541542
export function addEntryComponentToModule(source: ts.SourceFile,
542543
modulePath: string, classifiedName: string,

0 commit comments

Comments
 (0)