Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 546 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 546 Bytes

zm-long-click

AngularJS directive. This directive allows you to call method after pressing element for 1sec!

Usage

Include zm-long-click.js file in your HTML page.

<script language="JavaScript" src="js/zm-long-click.js"></script>

Include zm-long-click directive in your angularJS app.

var app = angular.module('yourAppName', ['zm-long-click']);

Add zm-long-click attribute on your element!

<button zm-long-click="methodYouWantToCall()">Call method after long click</button>