Skip to content

Instantly share code, notes, and snippets.

@hansmaad
Created November 27, 2014 07:28
Show Gist options
  • Save hansmaad/b9884e6caf6ba01d1195 to your computer and use it in GitHub Desktop.
Save hansmaad/b9884e6caf6ba01d1195 to your computer and use it in GitHub Desktop.
(function({{$1:moduleName}}){
'use strict';
angular.module('{{$2:angularModule}}')
.directive('{{$3:directive}}', {{$3:directive}});
function {{$3:directive}}() {
return {
restrict : 'E',
templateUrl : '',
link : link
};
function link(scope, element, attr) {
{{!cursor}}
}
}
})(window.{{$1:moduleName}} = window.{{$1:moduleName}} || {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment