From c1b85f3266843194c6181ec18196981172f4a0b7 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Fri, 3 Mar 2017 17:20:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E8=AE=A2=E5=AE=8C=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=9E=8B=E6=8C=87=E4=BB=A4=E5=92=8C=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/docs/ts/latest/guide/attribute-directives.jade | 5 +++++ public/docs/ts/latest/guide/component-styles.jade | 10 ---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/public/docs/ts/latest/guide/attribute-directives.jade b/public/docs/ts/latest/guide/attribute-directives.jade index d65ee732db..0065fe9631 100644 --- a/public/docs/ts/latest/guide/attribute-directives.jade +++ b/public/docs/ts/latest/guide/attribute-directives.jade @@ -51,10 +51,15 @@ a#directive-overview 在 Angular 中有三种类型的指令: 1. Components—directives with a template. + 组件 — 拥有模板的指令 + 1. Structural directives—change the DOM layout by adding and removing DOM elements. + 结构型指令 — 通过添加和移除 DOM 元素改变 DOM 布局的指令 + 1. Attribute directives—change the appearance or behavior of an element. + 属性型指令 — 改变元素显示和行为的指令。 *Components* are the most common of the three directives. diff --git a/public/docs/ts/latest/guide/component-styles.jade b/public/docs/ts/latest/guide/component-styles.jade index 7baf4ac6fa..a8574d6f21 100644 --- a/public/docs/ts/latest/guide/component-styles.jade +++ b/public/docs/ts/latest/guide/component-styles.jade @@ -126,8 +126,6 @@ a(id="special-selectors") ### :host - ### :host - Use the `:host` pseudo-class selector to target styles in the element that *hosts* the component (as opposed to targeting elements *inside* the component's template): @@ -157,8 +155,6 @@ a(id="special-selectors") :marked ### :host-context - ### :host-context - Sometimes it is useful to apply styles based on some condition *outside* a component's view. For example, there may be a CSS theme class applied to the document `` element, and we want to change how our component looks based on that. @@ -183,8 +179,6 @@ a(id="special-selectors") :marked ### /deep/ - ### /deep/ - Component styles normally apply only to the HTML in the component's own template. 组件样式通常只会作用于组件自身的 HTML 上。 @@ -304,8 +298,6 @@ block module-bundlers `styles: [require('my.component.css')]` - `styles: [require('my.component.css')]` - We set the `styles` property, **not** `styleUrls` property! The module bundler is loading the CSS strings, not Angular. Angular only sees the CSS strings *after* the bundler loads them. @@ -338,8 +330,6 @@ block module-bundlers :marked ### CSS @imports - ### CSS @imports - We can also import CSS files into our CSS files by using the standard CSS [`@import` rule](https://developer.mozilla.org/en/docs/Web/CSS/@import).