ionic book


layout: "docs_api" version: "1.1.0" versionHref: "/docs" path: "api/directive/onTouch/"

title: "on-touch" header_sub_title: "Directive in module ionic" doc: "onTouch"

docType: "directive"

on-touch

Called immediately when the user first begins a touch. This gesture does not wait for a touchend/mouseup.

Usage

<button on-touch="onTouch()" class="button">Test</button>