From 21ffc7d24f58930cbc1be536416f7790f24b2264 Mon Sep 17 00:00:00 2001
From: Zhicheng Wang The 这个 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,也可以调用组件中的方法。
@@ -338,6 +340,9 @@ is available to declarations
of this module.
*
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
@@ -518,6 +527,8 @@ is available to declarations
of this module.
Built-in directives
+ 内置指令
+
@@ -505,6 +512,8 @@ is available to declarations
of this module.
declarations
of this module.
declarations
of this module.
Class decorators
+ 类装饰器
+
declarations
of this module.
+
+ 声明某个类具有一些依赖。当依赖注入器要创建这个类的实例时,应该把这些依赖注入到它的构造函数中。
+ @@ -644,6 +660,8 @@ is available todeclarations
of this module.
Directive configuration
+ 指令配置项
+
declarations
of this module.
Component configuration
+ 组件配置项
+
-
-@Component
extends @Directive
,
+
@Component
extends @Directive
,
so the @Directive
configuration applies to components as well
@Component
继承自 @Directive
,
+因此,@Directive
的这些配置项也同样适用于组件。
@Directive
configuration applies to components as well
Class field decorators for directives and components
+ 给指令和组件使用的类属性配置项
+
@Directive
configuration applies to components as well
Directive and component change detection and lifecycle hooks
+ 指令与组件的变更检测与生命周期钩子
+
@Directive
configuration applies to components as well
Dependency injection configuration
+ 依赖注入配置项
+
@Directive
configuration applies to components as well
Routing and navigation
+ 路由与导航
+