Uncaught Error: [$rootScope:infdig]

后端 未结 1 788
时光取名叫无心
时光取名叫无心 2020-12-12 02:15

This is my code snippet

  
      
          My Data
          

        
相关标签:
1条回答
  • 2020-12-12 02:55

    On every digest cycle the function Getdata(data3) will get fired. In that function you are mutating datum.MyModel which kick off an new digest cycle. If this repeats more then 10 times, you get an error.

    The short advice: don’t use functions in an ngRepeat expression.

    0 讨论(0)
提交回复
热议问题