1.0.0 • Published 7 years ago

ng-hammer v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

ngHammer

Angular directives for all touch events handled by hammer.js: http://eightmedia.github.io/hammer.js/

#About

This plugin creates directives for each event handled by hammer.js. Functionality is the same as native angular event directives.

Usage

Include hammer.js, nghammer.js, and angular.js on your page. Then simply add ngHammer as a dependcy in your angular module. Then use the directives just like you would ng-click="expression"

angular.module('myApp', ['ngHammer']);
<div ng-drag="expression" ng-swipeup="expression" ng-tap="expression"></div>