2014-06-12 53 views
1

我使用这个代码来引导英里角应用程序时,我得到的deviceReady事件角应用程序前实现装载机(或强制manuelly在浏览器中进行测试时):Corova - 角 - 离子:引导

var PhoneGapInit = function() { 
    this.boot = function() { 
    console.log("starting angular"); 
    angular.bootstrap(document, ['cmmApp']); 
    }; 

    if (window.cordova !== undefined) { 
    console.log("Found Cordova"); 
    var _this = this; 
    document.addEventListener('deviceready', function() { 
     _this.boot(); 
    }); 
    } else { 
    console.log('PhoneGap not found, booting Angular manually'); 
    this.boot(); 
    } 
}; 

//this start angular 
angular.element(document).ready(function() { 
    new PhoneGapInit(); 
}); 

但我想创建一个加载程序,并在应用程序加载之前隐藏“脏&无格式”html代码。任何想法如何做到这一点?

感谢

回答