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
Removes `ViewEncapsulation.Native` which has been deprecated for several major versions.
BREAKING CHANGES:
* `ViewEncapsulation.Native` has been removed. Use `ViewEncapsulation.ShadowDom` instead. Existing
usages will be updated automatically by `ng update`.
PR Closeangular#38882
@@ -89,7 +88,6 @@ Tip: In the [API reference section](api) of this doc site, deprecated APIs are i
89
88
|[`DefaultIterableDiffer`](api/core/DefaultIterableDiffer)| n/a | v4 | Not part of public API. |
90
89
|[`ReflectiveInjector`](api/core/ReflectiveInjector)|[`Injector.create`](api/core/Injector#create)| v5 | See [`ReflectiveInjector`](#reflectiveinjector)|
| [`ViewEncapsulation.Native`](api/core/ViewEncapsulation#Native) | [`ViewEncapsulation.ShadowDom`](api/core/ViewEncapsulation#ShadowDom) | v6 | Use the native encapsulation mechanism of the renderer. See [view.ts](https://github.com/angular/angular/blob/3e992e18ebf51d6036818f26c3d77b52d3ec48eb/packages/core/src/metadata/view.ts#L32).
93
91
|[`defineInjectable`](api/core/defineInjectable)|`ɵɵdefineInjectable`| v8 | Used only in generated code. No source code should depend on this API. |
94
92
|[`entryComponents`](api/core/NgModule#entryComponents)| none | v9 | See [`entryComponents`](#entryComponents)|
95
93
|[`ANALYZE_FOR_ENTRY_COMPONENTS`](api/core/ANALYZE_FOR_ENTRY_COMPONENTS)| none | v9 | See [`ANALYZE_FOR_ENTRY_COMPONENTS`](#entryComponents)|
Copy file name to clipboardExpand all lines: aio/content/guide/view-encapsulation.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,6 @@ Choose from the following modes:
13
13
to attach a shadow DOM to the component's host element, and then puts the component
14
14
view inside that shadow DOM. The component's styles are included within the shadow DOM.
15
15
16
-
*`Native` view encapsulation uses a now deprecated version of the browser's native shadow DOM implementation - [learn about the changes](https://hayato.io/2016/shadowdomv1/).
17
-
18
16
*`Emulated` view encapsulation (the default) emulates the behavior of shadow DOM by preprocessing
19
17
(and renaming) the CSS code to effectively scope the CSS to the component's view.
20
18
For details, see [Inspecting generated CSS](guide/view-encapsulation#inspect-generated-css) below.
@@ -26,7 +24,7 @@ Choose from the following modes:
26
24
27
25
To set the components encapsulation mode, use the `encapsulation` property in the component metadata:
0 commit comments