angular-nevera-generator
Version:
Yeoman AngularJS scaffold a webapp with Angular 1 written in ES6 (Babel), TypeScript through Webpack or SystemJS including tools Gulp 4, ESLint, Browsersync and Karma
18 lines (16 loc) • 329 B
text/typescript
function <%- directiveName %>() {
return {
restrict: 'E',
scope: {
data: '='
},
link: (scope, element, attrs) => {},
controller: () => {},
controllerAs: 'ctrl'
};
}
<% if (modules === 'inject') { -%>
<% include inject/directive.ts %>
<% } else { -%>
<% include modules/directive.ts %>
<% } -%>