title: angular.js with require.js getting Uncaught Error: [$injector:modulerr]
body: <p>I am trying to use require.js with Main.js and getting following error:</p>
  
  <p>Uncaught Error: [$injector:modulerr] <a href="http://errors.angularjs.org/1.2.0rc1/" rel="noreferrer">http://errors.angularjs.org/1.2.0rc1/</a>$injector/modulerr?p0=MyApp&amp;p1=Error%3…3A8080%2FResults%2Fresources%2Fjs%2Fvendor%2Fangular.min.js%3A31%3A252) </p>
  
  <p>My Main.js</p>
  
  <pre><code> require.config({
  
      // alias libraries paths
      paths: {
          'angular': 'vendor/angular.min',
          'jquery': 'vendor/jquery-1.8.0-min',
          'angularroute': 'vendor/angular-route'          
      },
  
      // angular does not support AMD out of the box, put it in a shim
      shim: {
          'angular': {
              deps: ['jquery'],
              exports: 'angular'
          },
          'angularroute':{
              deps:['angular']
          }
  
      }
  });
  require([
           'angular',
           'angularroute',
           'app'
           ],
          function(angular, angularroute, app){
      'use strict';       
  })
  </code></pre>
  
  <p>My app.js</p>
  
  <pre><code>define(['angular'], function(angular){
      return angular.module('MyApp',['ngRoute']);
  });
  </code></pre>
  
  <p>I got an error that said I need to add angularroute to my app but I still get this error. Can anyone point me to what i might be doing wrong?</p>