title: ng-repeat returns TypeError: Cannot read property 'insertBefore' of null
body: <p>I have an object array called $scope.transactions = [....] and it has proper values. but when I access it inside ng-repeat as below it returns the above
  error.</p>
  
  <p><strong>controller code</strong>:</p>
  
  <pre><code>application.controller("custTransactionCtrl", function($scope, StbetServices) {
      $scope.transactions=[];
      .....
      .......
       $.ajax({
              url: 'CustomerTransaction',
              type: "POST",
              data: {
                  fromDate: fromDate,
                  toDate: toDate,
                  type:$scope.selectedItem.id
              },
              success: function(data1) {
                   $scope.transactions = JSON.parse(data1);
  
              },
              error: function(jqXHR) {
                  console.log(jqXHR.responseText);
              }
          });
  </code></pre>
  
  <p>and I use this <strong>transactions</strong> array inside my html as below:</p>
  
  <p><strong>My HTML</strong>:</p>
  
  <pre><code>         &lt;tbody&gt;
                  &lt;tr ng-repeat="t in transactions"&gt;
                      &lt;td align="left"&gt;{{t.transactionDescription}}&lt;/td&gt;
                      &lt;td align="left"&gt;{{t.transactionDate}} &lt;/td&gt;
                      &lt;td align="left"&gt;{{t.transactionAmount}}&lt;/td&gt;
                      &lt;td align="left"&gt;{{t.customerAccount.id}}&lt;/td&gt;
                      &lt;td align="left"&gt;{{t.transactionReference}}&lt;/td&gt;
                      &lt;td align="left"&gt;{{t.transactionReference2}}&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
  </code></pre>
  
  <p>this will return <code>****TypeError: Cannot read property 'insertBefore' of null****</code> and the complete error message is:</p>
  
  <pre><code>TypeError: Cannot read property 'insertBefore' of null
      at http://192.168.1.222:8080/stbet/lib/angular.js:2247:13
      at forEach (http://192.168.1.222:8080/stbet/lib/angular.js:133:18)
      at forEach.after (http://192.168.1.222:8080/stbet/lib/angular.js:2246:5)
      at Object.JQLite.(anonymous function) [as after] (http://192.168.1.222:8080/stbet/lib/angular.js:2301:17)
      at http://192.168.1.222:8080/stbet/lib/angular.js:14038:22
      at publicLinkFn (http://192.168.1.222:8080/stbet/lib/angular.js:4095:29)
      at Object.ngRepeatWatch (http://192.168.1.222:8080/stbet/lib/angular.js:14037:13)
      at Object.$get.Scope.$digest (http://192.168.1.222:8080/stbet/lib/angular.js:8090:47)
      at Object.$get.Scope.$apply (http://192.168.1.222:8080/stbet/lib/angular.js:8304:24)
      at HTMLButtonElement.&lt;anonymous&gt; (http://192.168.1.222:8080/stbet/lib/angular.js:13255:17)
  </code></pre>
  
  <p><strong>UPDATED:</strong></p>
  
  <p>please find the console output below:</p>
  
  <p><img src="https://i.stack.imgur.com/f4rr3.jpg" alt="enter image description here"></p>