Skip to content

Commit 6d68703

Browse files
alan-agius4hansl
authored andcommitted
feat(@schematics/angular): add support for ShadowDom as a viewEncapsulation value
1 parent 64927e8 commit 6d68703

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/schematics/angular/application/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"viewEncapsulation": {
3838
"description": "Specifies the view encapsulation strategy.",
39-
"enum": ["Emulated", "Native", "None"],
39+
"enum": ["Emulated", "Native", "None", "ShadowDom"],
4040
"type": "string"
4141
},
4242
"routing": {

packages/schematics/angular/component/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"viewEncapsulation": {
4141
"description": "Specifies the view encapsulation strategy.",
42-
"enum": ["Emulated", "Native", "None"],
42+
"enum": ["Emulated", "Native", "None", "ShadowDom"],
4343
"type": "string",
4444
"alias": "v"
4545
},

packages/schematics/angular/ng-new/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
},
8686
"viewEncapsulation": {
8787
"description": "Specifies the view encapsulation strategy.",
88-
"enum": ["Emulated", "Native", "None"],
88+
"enum": ["Emulated", "Native", "None", "ShadowDom"],
8989
"type": "string"
9090
},
9191
"version": {

0 commit comments

Comments
 (0)