docs(cookbook/component-communication): Astronout -> AstronautComponent word typo fix
closes #1067 Changed AstronoutComponent to AstronautComponent.
This commit is contained in:
parent
ec4c1edff4
commit
36c98ae4bf
|
@ -299,8 +299,8 @@ a(id="countdown-tests")
|
||||||
+makeExample('cb-component-communication/ts/app/missioncontrol.component.ts')
|
+makeExample('cb-component-communication/ts/app/missioncontrol.component.ts')
|
||||||
|
|
||||||
:marked
|
:marked
|
||||||
The `AstronoutComponent` also injects the service in its constructor.
|
The `AstronautComponent` also injects the service in its constructor.
|
||||||
Each `AstronoutComponent` is a child of the `MissionControlComponent` and therefore receives its parent's service instance:
|
Each `AstronautComponent` is a child of the `MissionControlComponent` and therefore receives its parent's service instance:
|
||||||
|
|
||||||
+makeExample('cb-component-communication/ts/app/astronaut.component.ts')
|
+makeExample('cb-component-communication/ts/app/astronaut.component.ts')
|
||||||
|
|
||||||
|
@ -315,7 +315,7 @@ a(id="countdown-tests")
|
||||||
it controls the lifetime of the `MissionService`.
|
it controls the lifetime of the `MissionService`.
|
||||||
:marked
|
:marked
|
||||||
The *History* log demonstrates that messages travel in both directions between
|
The *History* log demonstrates that messages travel in both directions between
|
||||||
the parent `MissionControlComponent` and the `AstronoutComponent` children,
|
the parent `MissionControlComponent` and the `AstronautComponent` children,
|
||||||
facilitated by the service:
|
facilitated by the service:
|
||||||
|
|
||||||
figure.image-display
|
figure.image-display
|
||||||
|
@ -324,7 +324,7 @@ figure.image-display
|
||||||
:marked
|
:marked
|
||||||
### Test it
|
### Test it
|
||||||
|
|
||||||
Tests click buttons of both the parent `MissionControlComponent` and the `AstronoutComponent` children
|
Tests click buttons of both the parent `MissionControlComponent` and the `AstronautComponent` children
|
||||||
and verify that the *History* meets expectations:
|
and verify that the *History* meets expectations:
|
||||||
|
|
||||||
+makeExample('cb-component-communication/e2e-spec.js', 'bidirectional-service')
|
+makeExample('cb-component-communication/e2e-spec.js', 'bidirectional-service')
|
||||||
|
|
Loading…
Reference in New Issue