UNPKG

generator-at-angular

Version:

Yeoman angular application generator thet uses Webpack, SASS, UI router, Karma and Jasmine for testing, and auto generated docs.

20 lines (15 loc) 406 B
<% if (needsPartial) { %> import directiveTpl from './<%= directiveName %>.html'; <% } %> function <%= directiveNameCamel %>Directive() { 'ngInject'; return { restrict: 'EA', scope: {},<% if (needsPartial) { %> templateUrl: directiveTpl, <% } %> link: linkFn }; function linkFn(scope, elem, attrs, fn) { } } export default <%= directiveNameCamel %>Directive;