From d36666400733b902cfa6d312a1089e53755319de Mon Sep 17 00:00:00 2001 From: WD Snoeijer <88512452+dsnoeijer@users.noreply.github.com> Date: Fri, 14 Oct 2022 15:55:11 +0200 Subject: [PATCH] docs: fix linter errors for view-encapsulation.md (#47772) PR Close #47772 --- aio/content/guide/view-encapsulation.md | 39 +++++++++++++------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/aio/content/guide/view-encapsulation.md b/aio/content/guide/view-encapsulation.md index 70c79a77b71ec..697fb2f0f3abe 100644 --- a/aio/content/guide/view-encapsulation.md +++ b/aio/content/guide/view-encapsulation.md @@ -2,20 +2,24 @@ In Angular, a component's styles can be encapsulated within the component's host element so that they don't affect the rest of the application. -The `Component`'s decorator provides the [`encapsulation`](api/core/Component#encapsulation) option which can be used to control how the encapsulation is applied on a *per component* basis. +The `Component` decorator provides the [`encapsulation`](api/core/Component#encapsulation) option which can be used to control how the encapsulation is applied on a *per component* basis. Choose from the following modes: + + | Modes | Details | |:--- |:--- | -| `ViewEncapsulation.ShadowDom` | Angular uses the browser's built-in [Shadow DOM API](https://developer.mozilla.org/docs/Web/Web_Components/Shadow_DOM) to enclose the component's view inside a ShadowRoot \(used as the component's host element\) and apply the provided styles in an isolated manner.