簡體   English   中英

PhoneGap,Iphone,角度摘要循環錯誤:[$ rootScope:infdig]

[英]PhoneGap, Iphone, Angular digest loop Error: [$rootScope:infdig]

我有一個角度良好的應用程序,在我的瀏覽器上效果很好。 (也是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();

但是每次我在視圖之間移動時,都會收到此錯誤

你能幫我嗎

從角度1.4.4升級到角度1.4.6解決了該問題!

感謝您的評分...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM