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
to attach a shadow DOM to the component's host element, and then puts the component
286
-
view inside that shadow DOM. The component's styles are included within the shadow DOM.
287
-
288
-
*`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/).
289
-
290
-
*`Emulated` view encapsulation (the default) emulates the behavior of shadow DOM by preprocessing
291
-
(and renaming) the CSS code to effectively scope the CSS to the component's view.
292
-
For details, see [Inspecting generated CSS](guide/component-styles#inspect-generated-css) below.
293
-
294
-
*`None` means that Angular does no view encapsulation.
295
-
Angular adds the CSS to the global styles.
296
-
The scoping rules, isolations, and protections discussed earlier don't apply.
297
-
This is essentially the same as pasting the component's styles into the HTML.
298
-
299
-
To set the components encapsulation mode, use the `encapsulation` property in the component metadata:
to attach a shadow DOM to the component's host element, and then puts the component
14
+
view inside that shadow DOM. The component's styles are included within the shadow DOM.
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
+
*`Emulated` view encapsulation (the default) emulates the behavior of shadow DOM by preprocessing
19
+
(and renaming) the CSS code to effectively scope the CSS to the component's view.
20
+
For details, see [Inspecting generated CSS](guide/view-encapsulation#inspect-generated-css) below.
21
+
22
+
*`None` means that Angular does no view encapsulation.
23
+
Angular adds the CSS to the global styles.
24
+
The scoping rules, isolations, and protections discussed earlier don't apply.
25
+
This is essentially the same as pasting the component's styles into the HTML.
26
+
27
+
To set the components encapsulation mode, use the `encapsulation` property in the component metadata:
0 commit comments