title: AngularJS TypeError: Cannot read property 'insertBefore' of null
body: <p>I can't seem to wrap my mind around what I am doing wrong here. I am trying to pull json data from a php file and then display it in my Angular app. </p>
  
  <p><strong>My app.js:</strong></p>
  
  <pre><code>var app = angular.module("MyApp", []);
  
  app.controller("ClientHealthCtrl", function($scope, $http) {
      $http.get('json.php').
          success(function(data, status, headers, config) {
              $scope.rows = data;
      }).
      error(function(data, status, headers, config) {
          // log error
      });
  });
  </code></pre>
  
  <p><strong>My HTML:</strong></p>
  
  <pre><code>&lt;body class="skin-black" ng-app="MyApp"&gt;
  ...
  &lt;tbody ng-controller="ClientHealthCtrl"&gt;
    &lt;tr class="link_back" ng-repeat="Computer in rows"&gt;
      &lt;td&gt;&lt;a href="#cid={{Computer.id}}"&gt;{{Computer.ComputerName}}&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;&lt;i class="fa fa-fw fa-check-square" style="color:#008000;"&gt;&lt;/i&gt;{{Computer.WmiTest}}&lt;/td&gt;
      &lt;td&gt;&lt;i class="fa fa-fw fa-check-square" style="color:#008000;"&gt;&lt;/i&gt;{{Computer.SmsClientService}}&lt;/td&gt;
      &lt;td&gt;&lt;i class="fa fa-fw fa-check-square" style="color:#008000;"&gt;&lt;/i&gt;{{Computer.McAfeeFrameworkService}}&lt;/td&gt;
      &lt;td&gt;&lt;i class="fa fa-fw fa-check-square" style="color:#008000;"&gt;&lt;/i&gt;{{Computer.RemoteManagement}}&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p><strong>Which results in...</strong></p>
  
  <pre><code>TypeError: Cannot read property 'insertBefore' of null
      at https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js:2067:13
      at forEach (https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js:113:18)
      at forEach.after (https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js:2066:5)
      at Object.JQLite.(anonymous function) [as after] (https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js:2104:17)
      at https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js:13294:22
      at https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js:3745:29
      at Object.&lt;anonymous&gt; (https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js:13293:13)
      at Object.Scope.$digest (https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js:7693:38)
      at Object.Scope.$apply (https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js:7894:24)
      at done (https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js:8883:20) 
      enter code here
  </code></pre>