import * as angular from 'angular';
<% if (!moduleOnly) { %>import { <%= pName %>Config } from './<%= hName %>.config';
import { <%= pName %>Controller } from './<%= hName %>.controller';

<% } %>export const <%= pName %>Module = angular
    .module('<%= appName %>.<%= name %>', ['ui.router'])<% if (!moduleOnly) { %>
    .controller('<%= pName %>Controller', <%= pName %>Controller)
    .config(<%= pName %>Config)<% } %>
    .name;
<%if (!noImport) { %>import * as angular from 'angular';
<% } %><% if (!moduleOnly) { %>import { <%= pName %>Config } from './<%= hName %>.config';
import { <%= pName %>Controller } from './<%= hName %>.controller';

<% } %>export const <%= pName %>Module = angular
    .module('<%= appName %>.<%= name %>', [<% if (!moduleOnly) { %>'ui.router'])
    .controller('<%= pName %>Controller', <%= pName %>Controller)
    .config(<%= pName %>Config)<% } else { %>])<% } %>
    .name;
Remove angular import when flag set
Remove angular import when flag set
