title: angularjs pass newly created array in attribute to directive
body: <p>I've created this fiddle to show my issue...</p>
  
  <p><a href="http://jsfiddle.net/dQDtw/" rel="noreferrer">http://jsfiddle.net/dQDtw/</a></p>
  
  <p>I'm passing a newly created array to a directive, and everything is working out just fine.  However, I'm getting an error in the console window indicating: </p>
  
  <p><code>Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!</code></p>
  
  <p>Any thoughts on what I need to massage to clean this up?  I'd like to be able to reuse the directive without the need to update the controller.</p>
  
  <p>Here is the html</p>
  
  <pre><code>&lt;body ng-app="myApp"&gt;
      &lt;test-dir fam-people='[1,4,6]'&gt; &lt;/test-dir&gt;
      &lt;test-dir fam-people='[2,1,0]'&gt; &lt;/test-dir&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Here is the JS.</p>
  
  <p>var myApp = angular.module('myApp', []);</p>
  
  <pre><code>myApp.directive('testDir', function() {
              return { restrict: 'E'
                     , scope: { famPeople: '=famPeople' }
                     , template: "&lt;ol&gt; &lt;li ng-repeat='p in famPeople'&gt; {{p}}"
                     };
      });
  </code></pre>