Skip to content

Instantly share code, notes, and snippets.

View phindmarsh's full-sized avatar

Patrick Hindmarsh phindmarsh

View GitHub Profile
@phindmarsh
phindmarsh / directives.js
Created August 24, 2012 00:50 — forked from abourget/directives.js
Hammer.js integration with AngularJS without the jQuery plugin
/**
* Inspired by AngularJS' implementation of "click dblclick mousedown..."
*
* This ties in the Hammer events to attributes like:
*
* hm-tap="add_something()"
* hm-swipe="remove_something()"
*
* and also has support for Hammer options with:
*