title: "Failed to instantiate module ngSanitize" when pre-rendering AngualrJS site with PhantomJS
body: <p>I'm attempting to pre-render my AngularJS site using PhantomJS. (With phantomjs-runner.js from <a href="http://www.yearofmoo.com/2012/11/angularjs-and-seo.html">http://www.yearofmoo.com/2012/11/angularjs-and-seo.html</a>) I'm unable to load the page through PhantomJS as the error below occurs. This error does not occur in IE/Chrome/Firefox.</p>
  
  <p>How do I go about fixing this error?</p>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>Error: [$injector:modulerr] Failed to instantiate module SpaceForAfrica due to:
  Error: [$injector:modulerr] Failed to instantiate module dialogs due to:
  Error: [$injector:modulerr] Failed to instantiate module ngSanitize due to:
  Error: [$injector:nomod] Module 'ngSanitize' is not available! You either misspelled the module name or forgot to load it. If registering a
  module ensure that you specify the dependencies as the second argument.
  http://errors.angularjs.org/1.2.1/$injector/nomod?p0=ngSanitize
      at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js:1507
      at ensure (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js:1435)
      at module (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js:1717)
      at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular.js:3527
  </code></pre>
  
  <p><strong>Module config</strong></p>
  
  <pre><code>var SpaceForAfrica = angular.module('SpaceForAfrica', ['ngRoute', 'HashBangURLs', 'ui.bootstrap', 'ui.bootstrap.tpls', 'google-maps', 'ui.growl', 'dialogs', 'ngSanitize', 'angularSpinner','angulartics', 'angulartics.google.analytics']).config(spaceForAfricaConfig);
  </code></pre>