Skip to content

Commit 0d61c2e

Browse files
committed
fix(@schematics/angular): replace deprecated ChangeDetectionStrategy.Default with Eager
Updates the component schematic to use `ChangeDetectionStrategy.Eager` as the default strategy and updates the allowed enum values in the schema, as `ChangeDetectionStrategy.Default` is now deprecated.
1 parent 231f579 commit 0d61c2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/schematics/angular/component/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
6565
},
6666
"changeDetection": {
6767
"description": "Configures the change detection strategy for the component.",
68-
"enum": ["Default", "OnPush"],
68+
"enum": ["Eager", "OnPush"],
6969
"type": "string",
70-
"default": "Default",
70+
"default": "Eager",
7171
"alias": "c"
7272
},
7373
"prefix": {

0 commit comments

Comments
 (0)