mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
docs(button): add note for click handlers
This commit is contained in:
@ -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)
|
||||||
|
* }
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
|
Reference in New Issue
Block a user