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