docs: added missing slash to close tag (#39626)

PR Close #39626
This commit is contained in:
SephirotJustin 2020-11-10 13:04:10 +01:00 committed by atscott
parent dc31724458
commit d1355caa74
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ This syntax consists of a target event name within parentheses to the left of an
In the following example, the target event name is `click` and the template statement is `onSave()`. In the following example, the target event name is `click` and the template statement is `onSave()`.
<code-example language="html" header="Event binding syntax"> <code-example language="html" header="Event binding syntax">
&lt;button (click)="onSave()"&gt;Save&lt;button&gt; &lt;button (click)="onSave()"&gt;Save&lt;/button&gt;
</code-example> </code-example>
The event binding listens for the button's click events and calls the component's `onSave()` method whenever a click occurs. The event binding listens for the button's click events and calls the component's `onSave()` method whenever a click occurs.