title: generating random colors using angular ng-repeat
body: <p>How to generate random colors in ng-repeat. 
  i tried in the following way, but not working.</p>
  
  <p>I am getting error, saying:</p>
  
  <pre><code>Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
  </code></pre>
  
  <h2>controller</h2>
  
  <pre><code>$scope.getRandomColor = function(){
          return {
              borderLeft: '2px solid # '+Math.floor((Math.random()*6)+1)
          }       
      };
  </code></pre>
  
  <h2>view</h2>
  
  <pre><code>&lt;div ng-repeat="customer in customerData" class="col-sm-3"&gt;
      &lt;div class="contact-box" ng-style="getRandomColor()"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>