review: component-communication, testing, upgrade: fixes.
This commit is contained in:
parent
f5465ad533
commit
873eea9e7e
|
@ -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`方法负责控制时钟并在模板里显示倒计时的状态信息。
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue