From faf63c0609ab382086a2109ab1291501b7263486 Mon Sep 17 00:00:00 2001 From: Maple13 Date: Wed, 3 Feb 2021 17:39:22 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20Angular=20Component=20=E6=A6=82?= =?UTF-8?q?=E8=BF=B0=20=E2=80=94=E2=80=94=20=E5=A3=B0=E6=98=8E=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E6=A0=B7=E5=BC=8F=20=E6=AE=B5=E8=90=BD?= =?UTF-8?q?=E4=B8=AD=E5=8D=95=E8=AF=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 要在单独的文件中声明组件的样式,就要把 `stylesUrls` 属性添加到 `@Component` 装饰器中。 stylesUrls 应该为 styleUrls --- aio/content/guide/component-overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/component-overview.md b/aio/content/guide/component-overview.md index 8331e97191..ace8e9e17b 100644 --- a/aio/content/guide/component-overview.md +++ b/aio/content/guide/component-overview.md @@ -269,7 +269,7 @@ You can declare component styles uses for its template in one of two ways: by re To declare the styles for a component in a separate file, add a `stylesUrls` property to the `@Component` decorator. -要在单独的文件中声明组件的样式,就要把 `stylesUrls` 属性添加到 `@Component` 装饰器中。 +要在单独的文件中声明组件的样式,就要把 `styleUrls` 属性添加到 `@Component` 装饰器中。