<commit_before>---
layout: "docs_api"
version: "nightly"
versionHref: "/docs/nightly"
path: "api/directive/onHold/"

title: "on-hold"
header_sub_title: "Directive in module ionic"
doc: "onHold"
docType: "directive"
---

<div class="improve-docs">
  <a href='http://github.com/driftyco/ionic/tree/master/js/angular/directive/gesture.js#L8'>
    View Source
  </a>
  &nbsp;
  <a href='http://github.com/driftyco/ionic/edit/master/js/angular/directive/gesture.js#L8'>
    Improve this doc
  </a>
</div>




<h1 class="api-title">

  on-hold



</h1>





Touch stays at the same location for 500ms.








  
<h2 id="usage">Usage</h2>
  
```html
<button on-hold="onHold()" class="button">Test</button>
```
  
  

  




<commit_msg>docs: update for 1.0.0-beta.12-nightly-473<commit_after>---
layout: "docs_api"
version: "nightly"
versionHref: "/docs/nightly"
path: "api/directive/onHold/"

title: "on-hold"
header_sub_title: "Directive in module ionic"
doc: "onHold"
docType: "directive"
---

<div class="improve-docs">
  <a href='http://github.com/driftyco/ionic/tree/master/js/angular/directive/gesture.js#L8'>
    View Source
  </a>
  &nbsp;
  <a href='http://github.com/driftyco/ionic/edit/master/js/angular/directive/gesture.js#L8'>
    Improve this doc
  </a>
</div>




<h1 class="api-title">

  on-hold



</h1>





Touch stays at the same location for 500ms. Similar to long touch events available for AngularJS and jQuery.








  
<h2 id="usage">Usage</h2>
  
```html
<button on-hold="onHold()" class="button">Test</button>
```
  
  

  





{'fraction_non_alphanumeric': 0.17631917631917632, 'fraction_numerical': 0.01673101673101673, 'mean_word_length': 3.4301994301994303, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4615117', 'n_tokens_mistral': 675, 'n_tokens_neox': 598, 'n_words': 119}