<%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;
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;
--- 
+++ 
@@ -1,9 +1,9 @@
-import * as angular from 'angular';
-<% if (!moduleOnly) { %>import { <%= pName %>Config } from './<%= hName %>.config';
+<%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 %>', ['ui.router'])<% if (!moduleOnly) { %>
+    .module('<%= appName %>.<%= name %>', [<% if (!moduleOnly) { %>'ui.router'])
     .controller('<%= pName %>Controller', <%= pName %>Controller)
-    .config(<%= pName %>Config)<% } %>
+    .config(<%= pName %>Config)<% } else { %>])<% } %>
     .name;
Remove angular import when flag set
