diff --git a/public/docs/_examples/template-syntax/ts/app/app.component.html b/public/docs/_examples/template-syntax/ts/app/app.component.html index f0ee22ab80..56f27979f7 100644 --- a/public/docs/_examples/template-syntax/ts/app/app.component.html +++ b/public/docs/_examples/template-syntax/ts/app/app.component.html @@ -520,7 +520,7 @@ After setClasses(), the classes are "{{classDiv.className}}" - + diff --git a/public/docs/ts/latest/guide/template-syntax.jade b/public/docs/ts/latest/guide/template-syntax.jade index 97cbf150da..a4da8ba5a6 100644 --- a/public/docs/ts/latest/guide/template-syntax.jade +++ b/public/docs/ts/latest/guide/template-syntax.jade @@ -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.