Sha256: 9033f02f5dec9bfca7298da8aebb2a12727903e978a5ad34c091b8e7bdcf5c24
Contents?: true
Size: 471 Bytes
Versions: 18
Compression:
Stored size: 471 Bytes
Contents
'use strict'; angular.module('alch-templates', []); angular.module('alchemy', ['alch-templates']); 'use strict'; angular.module('alchemy').directive('onEnter', function() { return { scope: true, link: function(scope, element, attrs) { element.bind('keydown keypress', function(event) { if(event.which === 13) { scope.$apply(attrs.onEnter); } }); } }; });
Version data entries
18 entries across 18 versions & 3 rubygems