generator-at-angular
Version:
Yeoman angular application generator thet uses Webpack, SASS, UI router, Karma and Jasmine for testing, and auto generated docs.
19 lines (14 loc) • 398 B
JavaScript
<% if (needsPartial) { %>import directiveTpl from './<%= directiveName %>.directive.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;