Angular 2: Difference between revisions

Jump to navigation Jump to search
add a section on event binding
→‎@Component Annotation: remove ending bracket
add a section on event binding
Line 1: Line 1:
== Event ==
An example event binding.
<source lang="typescript">
<button (click)="onSave()">Save</button>
</source>
Canonical form:
<source lang="typescript">
<button on-click="onSave()">Save</button>
</source>
[https://developer.mozilla.org/en-US/docs/Web/Events|List of events that can be used on MDN.]
== Data Architecture ==
== Data Architecture ==


Navigation menu