PhoneGap,Iphone,Angular摘要循环错误:[$ rootScope:infdig]

时间:2015-09-29 17:49:44

标签: angularjs cordova angular-digest

我有一个在我的浏览器上运行良好的角度应用程序。 (也是我iphone5的浏览器) 只有当我使用PhoneGap在手机上运行时才会出现问题。

每次我在视图之间移动(我的应用程序中的所有视图)我都会收到类似的错误......

Error: [$rootScope:infdig] http://errors.angularjs.org/1.4.4/$rootScope/infdig?p0=10&p1=%5B%5B%7B%22msg%22%3A%22fn%3A%20function%20(c%2Cd%2Ce%2Cf)%7Be%3Da(c%2Cd%2Ce%2Cf)%3Breturn%20b(e%2Cc%2Cd)%7D%22%2C%22newVal%22%3A5%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20(c%2Cd%2Ce%2Cf)%7Be%3Da(c%2Cd%2Ce%2Cf)%3Breturn%20b(e%2Cc%2Cd)%7D%22%2C%22newVal%22%3A%22%22%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20(c%2Cd%2Ce%2Cf)%7Be%3Da(c%2Cd%2Ce%2Cf)%3Breturn%20b(e%2Cc%2Cd)%7D%22%2C%22newVal%22%3A%22207.20000000000002%22%7D%2C%7B%22msg%22%3A%22match.type%20%3D%3D%20'text'%22%2C%22newVal%22%3Afalse%7D%2C%7B%22msg%22%3A%22match.type%20%3D%3D%20'image'%22%2C%22newVal%22%3Afalse%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20(a)%7Breturn%20d(a)%7D%22%2C%22newVal%22%3A%7B%22height%22%3A%22207.20000000000002px%22%7D%7D%2C%7B%22msg%22%3A%22fn%3A%20function%20(c%2Cd%2Ce%2Cf)%7Be%3Da(c%2Cd%2Ce%2Cf)%3Breturn%20b(e%2Cc%2Cd)%7D%22%2C%22newVal%22%3A%22%22%7D%2C%7B%22msg%22%3A%22dialogLabelStyle%22%7D%2C%7B%22msg%22%3A%22%7B'showing'%3A%20matchDlgShowing%2C%20'allow-.............(and so on and so fourth)

1)在我的手机浏览器中,我没有收到任何错误

2)我不使用$ scope。$ watch at all

3)我禁用了FastClick

4)视图中的所有数据都来自包含静态JSON的服务,例如:

someApp.service('BaseContentService', function(ContentNumbersService){

    .......

    this.getSomeData = function() {
        return this.levels.levelsCount;
    };

});

//Inside controller
$scope.data = BaseContentService.getSomeData();

但每次我在视图之间移动时都会收到此错误

请帮助我

1 个答案:

答案 0 :(得分:1)

从角度1.4.4升级到角度1.4.6解决了这个问题!

感谢评分...