diff --git a/aio/content/guide/cheatsheet.md b/aio/content/guide/cheatsheet.md index 43eb128737..e697662fd5 100644 --- a/aio/content/guide/cheatsheet.md +++ b/aio/content/guide/cheatsheet.md @@ -11,6 +11,8 @@ Bootstrapping + 引导/启动 + @@ -338,6 +340,9 @@ is available to declarations of this module.

The * symbol turns the current element into an embedded template. Equivalent to: <ng-template [myUnless]="myExpression"><p>...</p></ng-template>

+

这个 * 符号会把当前元素转换成一个内嵌的模板。它等价于: +<ng-template [myUnless]="myExpression"><p>...</p></ng-template>

+ @@ -415,6 +420,8 @@ is available to declarations of this module.

Built-in directives + 内置指令 + @@ -505,6 +512,8 @@ is available to declarations of this module.

Allows you to assign styles to an HTML element using CSS. You can use CSS directly, as in the first example, or you can call a method from the component.

+

允许你使用 CSS 为 HTML 元素指定样式。你可以像第一个例子那样直接使用 CSS,也可以调用组件中的方法。

+ @@ -518,6 +527,8 @@ is available to declarations of this module.

Forms + 表单 + @@ -557,6 +568,8 @@ is available to declarations of this module.

Class decorators + 类装饰器 + @@ -631,6 +644,9 @@ is available to declarations of this module.

+ +

声明某个类具有一些依赖。当依赖注入器要创建这个类的实例时,应该把这些依赖注入到它的构造函数中。

+ @@ -644,6 +660,8 @@ is available to declarations of this module.

Directive configuration + 指令配置项 + @@ -704,15 +722,18 @@ is available to declarations of this module.

Component configuration + 组件配置项 + -

- -@Component extends @Directive, +

@Component extends @Directive, so the @Directive configuration applies to components as well

+

@Component 继承自 @Directive, +因此,@Directive 的这些配置项也同样适用于组件。

+ @@ -792,6 +813,8 @@ so the @Directive configuration applies to components as well

Class field decorators for directives and components + 给指令和组件使用的类属性配置项 + @@ -944,6 +967,8 @@ so the @Directive configuration applies to components as well

Directive and component change detection and lifecycle hooks + 指令与组件的变更检测与生命周期钩子 + @@ -1113,6 +1138,8 @@ so the @Directive configuration applies to components as well

Dependency injection configuration + 依赖注入配置项 + @@ -1180,6 +1207,8 @@ so the @Directive configuration applies to components as well

Routing and navigation + 路由与导航 +