review: component-communication, testing, upgrade: fixes.

This commit is contained in:
Zhimin YE (Rex) 2016-08-16 14:29:37 +01:00
parent f5465ad533
commit 873eea9e7e
3 changed files with 5 additions and 2 deletions

View File

@ -256,8 +256,7 @@ parent-to-child-local-var
父组件不能使用数据绑定来读取子组件的属性或调用子组件的方法。但可以在父组件模板里,新建一个本地变量来代表子组件,然后利用这个变量来读取子组件的属性和调用子组件的方法,如下例所示。
<a id="countdown-timer-example"></a>
<a id="countdown-timer-example"></a>
We have a child `CountdownTimerComponent` that repeatedly counts down to zero and launches a rocket. It has `start` and `stop` methods that control the clock and it displays a countdown status message in its own template.
子组件`CountdownTimerComponent`进行倒计时,归零时发射一个导弹。`start`和`stop`方法负责控制时钟并在模板里显示倒计时的状态信息。

View File

@ -3,6 +3,8 @@
We are still preparing the testing guide with all the new testing features
introduced in RC5 and will update it very soon.
我们应用所有RC5引进的新测试特征来编写新的测试指南将会在不久的将来更新本章。
:marked
We write **unit tests** to explore and confirm the **behavior** of parts of our application.

View File

@ -5,6 +5,8 @@ include ../_util-fns
This guide is still in the process of being updated to RC5 and it's samples
may not work correctly.
我们正在为RC5更新本指南目前本指南中的例子暂时不会正常运行。
:marked
Having an existing Angular 1 application doesn't mean that we can't
begin enjoying everything Angular 2 has to offer. That's because Angular 2