手动引导您的Angular应用程序:
ng-app从HTML代码中删除属性,因此Angular不会自行启动。
在您的Javascript代码中添加以下内容:
document.addEventListener("deviceready", function() { // retrieve the DOM element that had the ng-app attribute var domElement = document.getElementById(...) / document.querySelector(...); angular.bootstrap(domElement, ["angularAppName"]);}, false);有关引导应用程序的角度文档。



