File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
public/docs/ts/latest/guide Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ figure.image-display
348
348
img( src ='/resources/images/devguide/lifecycle-hooks/spy-directive.gif' alt ="Spy Directive" )
349
349
350
350
: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.
352
352
We see a new entry for each hero.
353
353
354
354
The *Reset* button clears the `heroes` list.
@@ -374,7 +374,7 @@ figure.image-display
374
374
Constructors should do no more than set the initial local variables to simple values.
375
375
376
376
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.
378
378
That's where the heavy initialization logic belongs.
379
379
380
380
Remember also that a directive's data-bound input properties are not set until _after construction_.
You can’t perform that action at this time.
0 commit comments