0

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

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

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

3) 我禁用了 FastClick

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

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

    .......

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

});

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

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

你能帮我吗

4

1 回答 1

1

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

谢谢评分...

于 2015-09-30T19:09:17.577 回答