title: Browser crashes on angularjs $http.get
body: <p>I'm working on a template system with angularJs, and I am including template files to my view with ng-include from an external js-file.</p>
  
  <p>When I run my index.html the browser, it crashes after a long while. It seems as if the page continues to reload over and over, and my CPU monitor goes through the roof.</p>
  
  <p>What on Earth can be wrong? I am fairly new at angularjs, so if anyone could point me in the right direction, I'd be very thankful.</p>
  
  <p>index.html</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en" data-ng-app="angularTemplate" data-ng-controller="templateCtrl"&gt;
  &lt;head&gt;
   &lt;meta charset="UTF-8"&gt;
   &lt;title&gt;{{ pageName + " - " + siteName }}&lt;/title&gt;
  
   &lt;script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
    &lt;header data-ng-include="includeHeader()"&gt;&lt;/header&gt;
    &lt;script type="text/javascript" src="./assets/js/templateCtrl.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>JS</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var app = angular.module('angularTemplate', []);
  app.controller('templateCtrl', function($scope, $http) {
    
    $scope.includeHeader = function(){
      $http.get("./assets/php/mysql.php?action=getSiteSetup")
      .success(function(response){
        $scope.siteName = response.siteName;
        $scope.siteTagline = response.siteTagline;
      });
      return "./assets/templates/header.html";
    }
    
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>the mysql.php?action=getSiteSetup is a simple sql call which returns</p>
  
  <pre><code>{"siteName":"AngularJS Template","siteTagline":"Just another template...","siteBaseURL":"http:\/\/localhost\/angularjs_template\/"}
  </code></pre>