docs(template-syntax): typos found by Deb K

This commit is contained in:
Ward Bell 2016-01-30 13:28:18 -08:00
parent 9e75006b2d
commit 593167eb79
2 changed files with 3 additions and 3 deletions

View File

@ -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 -->

View File

@ -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.