import { <%= pName %>Config } from "./<%= hName %>.config";
import { <%= pName %>Controller } from "./<%= hName %>.controller";

let module = angular
    .module("<%= appName %>.<%= name %>", [])
    .controller("<%= pName %>Controller", <%= pName %>Controller)
    .config(<%= pName %>Config);

let <%= name %> = module.name;

export { <%= name %> };
<% if (!moduleOnly) { %>import { <%= pName %>Config } from "./<%= hName %>.config";
import { <%= pName %>Controller } from "./<%= hName %>.controller";

<% } %>let module = angular
    .module("<%= appName %>.<%= name %>", [])<% if (!moduleOnly) { %>
    .controller("<%= pName %>Controller", <%= pName %>Controller)
    .config(<%= pName %>Config)<% } %>;

let <%= name %> = module.name;

export { <%= name %> };
Edit base module file to include moduleOnly
Edit base module file to include moduleOnly
