ng new --viewEncapsulation Native|None|ShadowDom do nothing #13689
Labels
area: @schematics/angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Description
Hi,
I try to start new project with default
viewEncapsulation
set toShadowDom
.According to
ng new
documentation, i use--viewEncapsulation
flag.But once the project is generated and served,
app-root
does not have#shadow-root
.I tried all the other encapsulation but I do not see any result.
What is the expected result for this flag?
Set default shematic with
"viewEncapsulation": "ShadowDom"
inangular.json
and generateapp.component.ts
withencapsulation: ViewEncapsulation.ShadowDom
OR
Add to
main.ts
:Currently it does neither of the two.
🔬 Minimal Reproduction
🌍 Your Environment
The text was updated successfully, but these errors were encountered: