Angular 2: Difference between revisions

Jump to navigation Jump to search
16 bytes removed ,  8 July 2016
delete initial notes
Line 26: Line 26:
An example event binding.
An example event binding.


<source lang="typescript">
<source lang="ts">
<button (click)="onSave()">Save</button>
<button (click)="onSave()">Save</button>
</source>
</source>
Line 32: Line 32:
Canonical form:
Canonical form:


<source lang="typescript">
<source lang="ts">
<button on-click="onSave()">Save</button>
<button on-click="onSave()">Save</button>
</source>
</source>


[https://developer.mozilla.org/en-US/docs/Web/Events List of events that can be used on MDN.]
[https://developer.mozilla.org/en-US/docs/Web/Events List of events that can be used on MDN.]

Navigation menu