Skip to content

Instantly share code, notes, and snippets.

View PariasDev's full-sized avatar

Antonio Ramírez PariasDev

View GitHub Profile
@PariasDev
PariasDev / controller.js
Last active November 6, 2015 12:04 — forked from BobNisco/controller.js
onLongPress AngularJS Directive - Great for mobile!
// Somewhere in your controllers for this given example
// Example functions
$scope.itemOnLongPress = function(id) {
console.log('Long press');
}
$scope.itemOnTouchEnd = function(id) {
console.log('Touch end');
}