diff --git a/public/docs/ts/latest/cookbook/dynamic-form.jade b/public/docs/ts/latest/cookbook/dynamic-form.jade index aaae0406b3..c2c77f74d6 100644 --- a/public/docs/ts/latest/cookbook/dynamic-form.jade +++ b/public/docs/ts/latest/cookbook/dynamic-form.jade @@ -52,7 +52,7 @@ include ../_util-fns :marked **See the **. - **参见**。 + **参见在线例子**。 .l-main-section diff --git a/public/docs/ts/latest/cookbook/form-validation.jade b/public/docs/ts/latest/cookbook/form-validation.jade index c483d67137..d2de6d58d0 100644 --- a/public/docs/ts/latest/cookbook/form-validation.jade +++ b/public/docs/ts/latest/cookbook/form-validation.jade @@ -133,7 +133,7 @@ a#template1 :marked #### Why check _dirty_ and _touched_? - ### 为何检查**dirty**和**touched**? + #### 为何检查**dirty**和**touched**? We shouldn't show errors for a new hero before the user has had a chance to edit the value. The checks for `dirty` and `touched` prevent premature display of errors. @@ -476,7 +476,7 @@ a#reactive ### Component template - ## 组件模板 + ### 组件模板 We begin by changing the `
` tag so that it binds the Angular `formGroup` directive in the template to the `heroForm` property in the component class. diff --git a/public/docs/ts/latest/guide/upgrade.jade b/public/docs/ts/latest/guide/upgrade.jade index 2b948e0061..19eb83cfe6 100644 --- a/public/docs/ts/latest/guide/upgrade.jade +++ b/public/docs/ts/latest/guide/upgrade.jade @@ -1675,14 +1675,22 @@ code-example(format=""). :marked ### Why declare _angular_ as _any_? + ### 为何将*Angular*声明为*any*? + A strongly typed `angular` reference to Angular 1 would be great. But we can't import its UMD typings library, `@types/angular`, without also importing Angular 1 itself via `import * as angular from 'angular'`. + + 如果能在Angular 1中使用强类型的`angular`引用就太好了! + 但是在不同时通过`import * as angular from 'angular'`导入Angular 1本身时,我们不能导入Angular 2的 UMD类型库`@types/angular`。 Angular 1 is currently loaded by a script tag in `index.html` and switching to an ES6 import at this time is not worth the considerable effort. Instead we declare `angular` as an untyped `any` to avoid typing errors. + Angular 1目前是被`index.html`里的脚本标签加载的,目前不值得将其切换到ES6导入。 + 我们声明`angular`为无类型的`any`来防止类型错误。 + :marked We can then make an adapter by instantiating the class: