parent
dc31724458
commit
d1355caa74
|
@ -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">
|
||||||
<button (click)="onSave()">Save<button>
|
<button (click)="onSave()">Save</button>
|
||||||
</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.
|
||||||
|
|
Loading…
Reference in New Issue