title: ng-repeat: 10 $digest() iterations reached
body: <p>Assuming you have a really large navigation, with about 15 nested levels, like:</p>
  
  <pre><code>var app = angular.module("myApp", []);
  
  app.controller("HomeCtrl", ["$scope", function($scope) {
    this.entries = [{
      "title": "test",
      "entries": [{
        "title": "sub-test",
        "entries": [{
          "title": "sub-test",
          "entries": [{
            "title": "sub-test",
            "entries": [{
              "title": "sub-test",
              "entries": [{
                "title": "sub-test",
                "entries": [{
                  "title": "sub-test",
                  "entries": [{
                    "title": "sub-test",
                    "entries": [{
                      "title": "sub-test",
                      "entries": [{
                        "title": "sub-test",
                        "entries": [{
                          "title": "sub-test",
                          "entries": [{
                            "title": "sub-test",
                            "entries": [{
                              "title": "sub-test"
                            }]
                          }]
                        }]
                      }]
                    }]
                  }]
                }]
              }]
            }]
          }]
        }]
      }]
    }];
    return this;
  }]);
  </code></pre>
  
  <p>And you are iterating over these with <code>ng-repeat</code>:</p>
  
  <pre><code>&lt;script type="text/ng-template" id="entryTree"&gt;
    &lt;span&gt;{{ entry.title }}&lt;/span&gt;
    &lt;ol ng-if="entry.entries"&gt;
      &lt;li ng-repeat="entry in entry.entries" ng-include="'entryTree'"&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/script&gt;
  &lt;div ng-controller="HomeCtrl as ctrl"&gt;
    &lt;ol&gt;
      &lt;li ng-repeat="entry in ctrl.entries" ng-include="'entryTree'"&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/wb7h0akL/1/" rel="nofollow noreferrer">Demo</a></p>
  
  <p>Then an <code>$rootScope:infdig</code> error will be thrown: <code>10 $digest() iterations reached. Aborting!</code>. I know that there are couple of similar questions here (for example <a href="https://stackoverflow.com/questions/14376879/error-10-digest-iterations-reached-aborting-with-dynamic-sortby-predicate">this one</a>). But in my case I'm not returning a dynamic value from my controller nor do I use a dynamic getter, I'm just statically saving the value inside the controller.</p>
  
  <p>What's the cause here? And how could a solution look like?</p>