Angular JS - 10 $Digest cycles error for strings?
<p>Please refer the console while you run - <a href="http://jsfiddle.net/E9bU5/239/" rel="nofollow">http://jsfiddle.net/E9bU5/239/</a></p>

<pre><code>$scope.changecolor = function() {
    return colorlist[($scope.j++)%colorlist.length]; //Returns a string, not an object.
};
</code></pre>

<p>From other SO posts, I understand that this error is thrown when the result is an object and different all the time. But in my case it is just string. Then also it is throwing the error. How to fix this?</p>