Component build for hammer directives in angular.js