You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1c1fe4e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(@schematics/angular): apply viewEncapsulation to generated application components
The `viewEncapsulation` option of the application schematic had no effect. The root
component template did not set `encapsulation`, the value was not added to the
component schematic defaults, so components generated later used the default
encapsulation, and the `defaultEncapsulation` option added to `bootstrapModule` in
`main.ts` for NgModule applications is only used by the JIT compiler.
Set `encapsulation` on the root component, add `viewEncapsulation` to the component
schematic defaults in `angular.json`, and remove the ineffective `defaultEncapsulation`
option from `main.ts`.
Fixes#34388
0 commit comments