<% 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;

@@ -63,16 +63,26 @@
 tiveName
+.directive
  %25%3E.html

fix directive partial import bug