Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit c9d7190

Browse files
committed
minor updates to Dart and TS jade
1 parent 061bfed commit c9d7190

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

public/docs/dart/latest/guide/lifecycle-hooks.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ block other-angular-subsystems
1414

1515
block tick-methods
1616
:marked
17-
The `LoggerService.tick` method, which returns a `Future`, postpones the
18-
update one turn of the of the browser's update cycle ... and that's long enough.
17+
The `LoggerService.tick()` postpones the log update
18+
for one turn of the browser's update cycle ... and that's just long enough.

public/docs/ts/latest/guide/lifecycle-hooks.jade

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ figure
77
img(src="/resources/images/devguide/lifecycle-hooks/hooks-in-sequence.png" alt="Us" align="left" style="width:200px; margin-left:-40px;margin-right:30px")
88

99
:marked
10-
A component has a lifecycle managed by Angular itself.
10+
A component has a lifecycle managed by Angular itself.
1111

1212
Angular creates it, renders it, creates and renders its children,
1313
checks it when its data-bound properties change, and destroys it before removing it from the DOM.
@@ -17,16 +17,13 @@ figure
1717

1818
A directive has the same set of lifecycle hooks, minus the hooks that are specific to component content and views.
1919
<br class="l-clear-both">
20-
## Table of Contents
21-
* [Overview](#hooks-overview)
22-
<br><br>
23-
* [Each hook's purpose and timing](#hooks-purpose-timing)
2420
+ifDocsFor('ts|js')
2521
:marked
22+
## Table of Contents
23+
* [Overview](#hooks-overview)
24+
* [Each hook's purpose and timing](#hooks-purpose-timing)
2625
* [Interfaces are optional (technically)](#interface-optional)
27-
:marked
2826
* [Other Angular lifecycle hooks](#other-lifecycle-hooks)
29-
<br><br>
3027
* [The lifecycle sample](#the-sample)
3128
* [All](#peek-a-boo)
3229
* [Spying OnInit and OnDestroy](#spy)
@@ -40,7 +37,7 @@ figure
4037
a#hooks-overview
4138
.l-main-section
4239
:marked
43-
## Component lifecycle Hooks
40+
## Component lifecycle hooks
4441
Directive and component instances have a lifecycle
4542
as Angular creates, updates, and destroys them.
4643
Developers can tap into key moments in that lifecycle by implementing
@@ -58,7 +55,7 @@ a#hooks-purpose-timing
5855
.l-main-section
5956
:marked
6057
## Lifecycle sequence
61-
*After* Angular creates a component/directive by `new`-ing its constructor,
58+
*After* Angular creates a component/directive,
6259
it calls the lifecycle hook methods in the following sequence at specific moments:
6360
table(width="100%")
6461
col(width="20%")
@@ -535,6 +532,7 @@ figure.image-display
535532

536533
+makeExample('lifecycle-hooks/ts/app/after-content.component.ts', 'hooks', 'AfterContentComponent (class excerpts)')(format=".")
537534

535+
a#no-unidirectional-flow-worries
538536
:marked
539537
### No unidirectional flow worries with _AfterContent..._
540538

0 commit comments

Comments
 (0)