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

Commit 205cc28

Browse files
kendaleivwardbell
authored andcommitted
docs(lifecycle-hooks): change ngOnit references to ngOnInit
closes #1084
1 parent f2f5d9f commit 205cc28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ figure.image-display
348348
img(src='/resources/images/devguide/lifecycle-hooks/spy-directive.gif' alt="Spy Directive")
349349

350350
:marked
351-
Adding a hero results in a new hero `<div>`. The spy's `ngOnit` logs that event.
351+
Adding a hero results in a new hero `<div>`. The spy's `ngOnInit` logs that event.
352352
We see a new entry for each hero.
353353

354354
The *Reset* button clears the `heroes` list.
@@ -374,7 +374,7 @@ figure.image-display
374374
Constructors should do no more than set the initial local variables to simple values.
375375

376376
When a component must start working _soon_ after creation,
377-
we can count on Angular to call the `ngOnit` method to jumpstart it.
377+
we can count on Angular to call the `ngOnInit` method to jumpstart it.
378378
That's where the heavy initialization logic belongs.
379379

380380
Remember also that a directive's data-bound input properties are not set until _after construction_.

0 commit comments

Comments
 (0)