diff --git a/public/docs/ts/latest/guide/cheatsheet-cn.json b/public/docs/ts/latest/guide/cheatsheet-cn.json index 04e87587e5..becb209cc6 100644 --- a/public/docs/ts/latest/guide/cheatsheet-cn.json +++ b/public/docs/ts/latest/guide/cheatsheet-cn.json @@ -47,7 +47,7 @@ "bold": [ "[attr.role]" ], - "description": "
把Attribute role
绑定到表达式 myAriaRole
的结果。
把role
这个Attribute绑定到表达式 myAriaRole
的结果。
把属性绑定到一个插值表达式字符串,比如 "Hello Seabiscuit". 等价于:\n<div [title]="'Hello' + ponyName">
把属性绑定到一个插值表达式字符串,比如 "Hello Seabiscuit"。它等价于:\n<div [title]="'Hello' + ponyName">
Hello {{ponyName}}
", @@ -118,7 +118,7 @@ "bold": [ "{{employer?.companyName}}" ], - "description": "安全导航运算符(?
)表示employer
字段是可选的,如果它是undefined
表达式剩下的部分将被忽略
安全导航运算符(?.
)表示employer
字段是可选的,如果它是undefined
,表达式剩下的部分将被忽略
声明当前类是一个管道,并且提供该管道的元数据。
\n" + "description": "声明当前类是一个管道,并且提供关于该管道的元数据。
\n" }, { "syntax": "@Injectable()\nclass MyService() {}", @@ -319,7 +319,7 @@ "bold": [ "@ContentChildren(myPredicate)" ], - "description": "把组件内容查询(MyPredicate)的全部结果,绑定到类的myChildComponents属性。
\n" + "description": "把组件内容查询(myPredicate)的全部结果,绑定到类的myChildComponents属性。
\n" }, { "syntax": "@ViewChild(myPredicate) myChildComponent;", @@ -333,7 +333,7 @@ "bold": [ "@ViewChildren(myPredicate)" ], - "description": "把组件视图查询(myPredicate)的所有结果绑定到类的myChildComponents属性。对指令无效。
\n" + "description": "把组件视图查询(myPredicate)的全部结果绑定到类的myChildComponents属性。对指令无效。
\n" } ], "index": 7 @@ -361,7 +361,7 @@ "bold": [ "ngOnInit()" ], - "description": "在构造函数、初始化输入属性、第一次调用完ngOnChanges之后调用。
\n" + "description": "在执行构造函数、初始化输入属性、第一次调用完ngOnChanges之后调用。
\n" }, { "syntax": "ngDoCheck() { ... }", @@ -490,21 +490,21 @@ "bold": [ "routerOnReuse" ], - "description": "当路由器可以复用一个组件实例时,它调用组件的routerOnReuse方法(如已定义)。
\n" + "description": "当路由器发现可以复用一个组件实例时,它调用组件的routerOnReuse方法(如已定义)。
\n" }, { "syntax": "routerCanDeactivate(nextInstruction, prevInstruction) { ... }", "bold": [ "routerCanDeactivate" ], - "description": "路由器会调用要完成导航所需移除的每个组件的routerCanDeactivate方法(如已定义)。当且仅当所有的该方法都返回true或者承诺(Promise)被解析(Resolve)时,导航才会继续。
\n" + "description": "路由器会调用如果要完成导航就得移除的每个组件的routerCanDeactivate方法(如已定义)。当且仅当所有的该方法都返回true或者承诺(Promise)被解决时,导航才会继续。
\n" }, { "syntax": "routerOnDeactivate(nextInstruction, prevInstruction) { ... }", "bold": [ "routerOnDeactivate" ], - "description": "在每个指令因为路由变更而被移除之前调用。可以返回一个承诺,来阻止移除本指令 —— 直到承诺(Promise)被解析(Resolve)。
\n" + "description": "在每个指令因为路由变更而被移除之前调用。可以返回一个承诺,来阻止移除本指令 —— 直到承诺(Promise)被解决。
\n" } ], "index": 10