title: Angular is missing resumeBootstrap function
body: <p>I am currently trying to setup a new AngularJS project using RequireJS. I have started with the <a href="https://github.com/tnajdek/angular-requirejs-seed" rel="nofollow">angularjs-requirejs-seed</a> project. I have done one project in the past using angular/require, but I have yet to be able to get it working with the "NG_DEFER_BOOTSTRAP" way. </p>
  
  <p>Here is my main.js file,</p>
  
  <pre><code>'use strict';
  
  require.config({
      paths: {
          jquery: "bower_components/jquery/dist/jquery",
          angular: "bower_components/angular/angular",
          angularRoute: "bower_components/angular-route/angular-route.min",
          angularMocks: "bower_components/angular-mocks/angular-mocks.min",
          text: "bower_components/requirejs-text/text",
          compApp: "components/app",
      },
      shim: {
          'angular' : {'exports' : 'angular'},
          'angularRoute': ['angular'],
          'angularMocks': {
              deps:['angular'],
              'exports':'angular.mock'
          }
      },
      priority: [
          "angular"
      ]
  });
  
  //http://code.angularjs.org/1.2.1/docs/guide/bootstrap#overview_deferred-bootstrap
  window.name = "NG_DEFER_BOOTSTRAP!";
  
  require([
      'angular',
      'compApp/app'
  ], function(angular, app) {
      var $html = angular.element(document.getElementsByTagName('html')[0]);
  
      angular.element().ready(function() {
          angular.resumeBootstrap([app['name']]);
      });
  });
  </code></pre>
  
  <p>When I run this I get an error <code>undefined is not a function</code> on the resumeBoostrap line. When I debug the app and set a breakpoint on the resumeBootstrap line, I find that angular is missing the resumeBootstrap method. However the window.name is showing NG_DEFER_BOOTSTRAP properly. Also, if I remove the resumeBoostrap method and just do <code>angular.bootstrap</code> then the app works which tells me everything else is fine.</p>
  
  <p>Here is my html file,</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;!--[if lt IE 7]&gt;      &lt;html class="no-js lt-ie9 lt-ie8 lt-ie7"&gt; &lt;![endif]--&gt;
  &lt;!--[if IE 7]&gt;         &lt;html class="no-js lt-ie9 lt-ie8"&gt; &lt;![endif]--&gt;
  &lt;!--[if IE 8]&gt;         &lt;html class="no-js lt-ie9"&gt; &lt;![endif]--&gt;
  &lt;!--[if gt IE 8]&gt;&lt;!--&gt; &lt;html class="no-js"&gt; &lt;!--&lt;![endif]--&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;meta name="description" content=""&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  
          &lt;!-- Place favicon.ico and apple-touch-icon.png in the root directory --&gt;
  
          &lt;link rel="stylesheet" href="css/normalize.css"&gt;
          &lt;link rel="stylesheet" href="css/main.css"&gt;
          &lt;script src="js/modernizr.min.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;!--[if lt IE 7]&gt;
              &lt;p class="browsehappy"&gt;You are using an &lt;strong&gt;outdated&lt;/strong&gt; browser. Please &lt;a href="http://browsehappy.com/"&gt;upgrade your browser&lt;/a&gt; to improve your experience.&lt;/p&gt;
          &lt;![endif]--&gt;
  
          &lt;h1&gt;AngularJS + RequireJS&lt;/h1&gt;
          &lt;ul class="menu"&gt;
              &lt;li&gt;&lt;a href="#/view1"&gt;view1&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#/view2"&gt;view2&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
  
          &lt;div ng-view&gt;&lt;/div&gt;
  
          &lt;script data-main="main" src="bower_components/requirejs/require.js"&gt;&lt;/script&gt;  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>