The (click)
to the left of the equals sign identifies the button's click event as the target of the binding. The text in quotes to the right of the equals sign is the template statement, which response to the click event by calling the component's onClickMe
method.
- When writing a binding, be aware of a template statement's execution context. The identifiers in a template The example above shows a single line of HTML, but that HTML belongs to a larger component: This is a highlighter line.
Console.ReadLine();
- This is sec
ond line.