title: Angular JS app not building properly on Grunt Compile,(minification) works fine on Grunt watch/build
body: <p>I am trying to compile my application that uses Angular JS (ngbp boilerplate). I'm very new to Angular and the SPA concept. It is a relatively simple app, that is setup to be built by Grunt. 
  The issue is weird - when I do a grunt watch, the application builds fine and everything works perfectly. But if I do a grunt compile, some of the stuff in the app don't work. </p>
  
  <p>For example, some URLs to child modules using states use <code>ui-router</code> do not load. There are no errors on the console. My controllers all have inline dependency injection </p>
  
  <p>eg.<code>controller( 'app.subModule', ['$scope','localStorageService','$http','$rootScope','$stateParams', function($scope,localStorageService,$http,$rootScope,$stateParams) {.......})]);</code></p>
  
  <p>Is there any other known issue caused by minification?</p>
  
  <p>EDIT: I did some debugging and it looks like only this particular module is not working upon minification. The rest of the modules are loading fine. The code for the module is:</p>
  
  <p><a href="http://pastebin.com/6L0pR4bQ" rel="nofollow">http://pastebin.com/6L0pR4bQ</a></p>
  
  <p>EDIT2: I tried using ngmin as advised, but that doesn't seem to be resolving the issue. It is only this module that fails to load. All others are loading fine. So I feel that the issue is in the code for this module. I also tried manually annotating the functions, as can be seen from the pastebin code paste.</p>
  
  <p>Could somebody tell me what I'm doing wrong?</p>