docs(button): add note for click handlers

This commit is contained in:
mhartington
2016-12-12 10:30:05 -05:00
parent 79eb2de0e3
commit 534e47be7c

View File

@ -88,6 +88,10 @@ import { isTrueProperty } from '../../util/util';
* Dark (Solid + Round)
* </button>
*
* <!-- Bind the click event to a method -->
* <button ion-button (click)="logEvent($event)">
* Click me!
* </button>
* ```
*
* ```ts
@ -102,6 +106,10 @@ import { isTrueProperty } from '../../util/util';
* isClear: boolean = true;
* myColor: string = 'secondary';
* myColor2: string = 'dark';
*
* logEvent(event) {
* console.log(event)
* }
* }
*
* ```