title: Fetch as Google doesn't render Angular.js application
body: <p>I have an Angular app that i'm trying to set up in production enviroment. As i have read, Google now is able to crawl through AJAX pages. I'm checking how i'd work with Fetch as Google service. Though the home page is correctly rendered in all major browsers, Fetch as Google returns blank page with none of Angular's directives compiled and no errors. I am using HTML5 mode and <code>ui-router</code>. Files are served by node.js app server (I have tried to serve files from nginx and result was the same) and all files are allowed by <code>robots.txt</code>. Scripts are concatenated and minified. There are no errors in console. </p>
  
  <p>Code returned by Fetch as Google service:
      !doctype html>
      
       
      
       
      
       
      
      
      </p>
  
  <pre><code>&lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
    &lt;base href="/"&gt;
    &lt;title ng-bind="$state2.current.data.pageTitle || 'xxx'"&gt;&lt;/title&gt;
    &lt;meta name="description" content="{{$state2.current.data.description}}"&gt;
    &lt;meta name="keywords" content="{{$state2.current.data.keywords}}"&gt;
    &lt;meta name="viewport" content="width=device-width"&gt;
    &lt;!-- Place favicon.ico and apple-touch-icon.png in the root directory --&gt;
    &lt;link rel="stylesheet" href="app/b91daaea.vendor.css"&gt;
    &lt;link rel="stylesheet" href="bower_components/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css" /&gt;
    &lt;link rel="stylesheet" href="app/dbc6e533.app.css"&gt;
  &lt;/head&gt;
  
  &lt;body iact-set-body="{{$state2.current.name}}" ng-cloak ng-controller="IndexCtrl as Index" ng-class="{'register-page' : $state2.current.name === 'register.one'}"&gt;
    &lt;iact-progress-bar ng-if="$state2.current.name === 'main.post'" class="progress-bar progress-bar--page"&gt;&lt;/iact-progress-bar&gt;
    &lt;div class="alert-block" alert-box&gt;&lt;/div&gt;
  
  
    &lt;loader ng-show="showLoader"&gt;&lt;/loader&gt;
    &lt;div class="ui-view-container"&gt;
      &lt;div ng-cloak ui-view&gt;&lt;/div&gt;
      &lt;div ng-cloak ui-view="layer" class="ui-view-layer"&gt;&lt;/div&gt;
    &lt;/div&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;!--[if lt IE 9]&gt;
      &lt;script src="bower_components/es5-shim/es5-shim.js"&gt;&lt;/script&gt;
      &lt;script src="bower_components/json3/lib/json3.min.js"&gt;&lt;/script&gt;
    &lt;![endif]--&gt;
    &lt;script src="https://cdn.socket.io/socket.io-1.3.7.js"&gt;&lt;/script&gt;
    &lt;script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB5s1GO-SwKumRL-es-SHnGYwom55LpJyM&amp;libraries=places"&gt;&lt;/script&gt;
    &lt;script src="app/9b5d1095.vendor.js"&gt;&lt;/script&gt;
    &lt;script src="app/b49bc91c.app.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Is there something that was done wrong or should I just go with prerendering for crawlers?</p>