From 18a9afc738e22a6e9c67f0421b39ff4e55af51be Mon Sep 17 00:00:00 2001 From: Sarun Intaralawan Date: Wed, 10 Oct 2018 14:06:42 +0700 Subject: [PATCH] docs(core): deprecate ViewEncapsulation.Native (#26361) PR Close #26361 --- packages/core/src/metadata/directives.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/metadata/directives.ts b/packages/core/src/metadata/directives.ts index fedc38d190..dc7f588325 100644 --- a/packages/core/src/metadata/directives.ts +++ b/packages/core/src/metadata/directives.ts @@ -516,12 +516,12 @@ export interface Component extends Directive { /** * An encapsulation policy for the template and CSS styles. One of: - * - `ViewEncapsulation.Native`: Use shadow roots. This works - * only if natively available on the platform. + * - `ViewEncapsulation.Native`: Deprecated. Use `ViewEncapsulation.ShadowDom` instead. * - `ViewEncapsulation.Emulated`: Use shimmed CSS that * emulates the native behavior. * - `ViewEncapsulation.None`: Use global CSS without any * encapsulation. + * - `ViewEncapsulation.ShadowDom`: Use Shadow DOM v1 to encapsulate styles. * * If not supplied, the value is taken from `CompilerOptions`. The default compiler option is * `ViewEncapsulation.Emulated`.