title: Controller call back function not working in Angular-Express-Bootstrap Seed
body: <p>I downloaded Angular-Express-Bootstrap seed from <a href="https://github.com/jimakker/angular-express-bootstrap-seed" rel="nofollow">https://github.com/jimakker/angular-express-bootstrap-seed</a>. I would like to perform routing through angular js which is performed perfectly. But now I am facing some problem on calling 'controller' in <strong>controllers.js</strong>.</p>
  
  <p>I can call my MyCtrl1 by this way and working perfectly:</p>
  
  <pre><code> function MyCtrl1() {
     alert('calling Myctrl1..')
   }
   MyCtrl1.$inject = [];
  </code></pre>
  
  <p>But whether I call like this:</p>
  
  <pre><code>var app = angular.module('myApp.controllers', []);
      app.controller('MyCtrl1', ['$scope', function($scope) {
        $scope.greeting = 'MyCtrl1';
        alert('calling'+ $scope.greeting+"..")
      }]);
  </code></pre>
  
  <p>The above controller call back function not working and shows this error: <code>Uncaught Error: [$injector:modulerr] MyCtrl1 is not defined</code></p>
  
  <p>Routing Config in app.js:</p>
  
  <pre><code>var app = angular.module('myApp', ['myApp.filters','myApp.controllers','myApp.services', 'myApp.directives','ngRoute'])
    app.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) 
    {
      $routeProvider
          .when('/view1', {
              templateUrl: 'partial/1', 
              controller: MyCtrl1
          })
      $locationProvider.html5Mode(true);
    }]);
  </code></pre>
  
  <p>I don't know why it is not working. Any help would be greatly appreciated. </p>