0

Please refer the console while you run - http://jsfiddle.net/E9bU5/239/

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

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?

anand patil
  • 507
  • 1
  • 9
  • 26

0 Answers0