Skip to content

Commit

Permalink
refactor(@schematics/angular): deprecate component entryComponents
Browse files Browse the repository at this point in the history
Since version 9.0.0 with Ivy, entryComponents is no longer necessary
  • Loading branch information
alan-agius4 authored and vikerman committed Nov 6, 2019
1 parent 4af9a8a commit 5bc0b9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/schematics/angular/component/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@
"entryComponent": {
"type": "boolean",
"default": false,
"description": "When true, the new component is the entry component of the declaring NgModule."
"description": "When true, the new component is the entry component of the declaring NgModule.",
"x-deprecated": "Since version 9.0.0 with Ivy, entryComponents is no longer necessary."
},
"lintFix": {
"type": "boolean",
Expand Down
1 change: 1 addition & 0 deletions packages/schematics/angular/utility/ast-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ export function addBootstrapToModule(source: ts.SourceFile,

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

0 comments on commit 5bc0b9d

Please sign in to comment.