docs(template-syntax): typos found by Deb K
This commit is contained in:
parent
9e75006b2d
commit
593167eb79
|
@ -520,7 +520,7 @@ After setClasses(), the classes are "{{classDiv.className}}"
|
|||
<button (click)="callPhone(phone.value)">Call</button>
|
||||
|
||||
<!-- fax refers to the input element; pass its `value` to an event handler -->
|
||||
<input var-fax placeholder="phone number">
|
||||
<input var-fax placeholder="fax number">
|
||||
<button (click)="callFax(fax.value)">Fax</button>
|
||||
<!-- #enddocregion var-phone -->
|
||||
|
||||
|
|
|
@ -693,7 +693,7 @@ code-example(format="", language="html").
|
|||
+makeExample('template-syntax/ts/app/hero-detail.component.ts',
|
||||
'deleted', 'HeroDetailComponent.ts (excerpt)')(format=".")
|
||||
:marked
|
||||
When the user clicks a button, the component invokes the `onDeleted()` method, which emits a `Hero` object.
|
||||
When the user clicks a button, the component invokes the `onDelete()` method, which emits a `Hero` object.
|
||||
The `HeroDetailComponent` doesn't know how to delete a hero. Its job is to present information and
|
||||
respond to user actions.
|
||||
|
||||
|
@ -1199,7 +1199,7 @@ figure.image-display
|
|||
we expect to bind to an event property that is also called `myClick`.
|
||||
+makeExample('template-syntax/ts/app/app.component.html', 'my-click')(format=".")
|
||||
:marked
|
||||
However, the directive name is often a poor choice for the the name of a property within the directive class.
|
||||
However, the directive name is often a poor choice for the name of a property within the directive class.
|
||||
The directive name rarely describes what the property does.
|
||||
The `myClick` directive name is not a good name for a property that emits click messages.
|
||||
|
||||
|
|
Loading…
Reference in New Issue