title: AngularJS v1.2.x $digest() infinite loop Directive isolated scope object param
body: <p>Simplified version of problem, view web dev console: <a href="http://plnkr.co/edit/3wKmWz?p=preview" rel="nofollow">http://plnkr.co/edit/3wKmWz?p=preview</a></p>
  
  <pre><code>Uncaught Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
  Watchers fired in the last 5 iterations:
  </code></pre>
  
  <p>So why does passing an object into a directive with an isolated scope cause an infinite $digest() loop?</p>
  
  <pre><code>// controller
  // AngularJS 1.2.x infinite digest caused when returning object into directive
  $scope.ctrlObjReturnFn = function() {
    return {test:true};
  }
  
  // view
  &lt;div test-dir breaking-object="ctrlObjReturnFn()"&gt;&lt;/div
  
  // directive
  app.directive('testDir', function() {
    return {
      scope: { breakingObject: '=' },
      link: function(scope, element, attrs) {
        element.html('printed obj: ' + scope.breakingObject.toString());
      }
    }
  });
  </code></pre>