1
輸出調用兩次:angular.element(就緒)功能從下面的代碼科爾多瓦
app.controller('puntenboekjeController', function ($scope) {
function upd(){
console.log("test");
}
angular.element(document).ready(function() {
upd();
});
});
是:
test
test
在index.js,我不引導角(或其他地方),app是在body-tag中定義的,我從來沒有使用onDeviceReady。
好像你已經用'ng-controller'或者從路由定義中聲明瞭'puntenboekjeController'兩次 –
真的!如果你想,發佈一個答案,以便我可以接受它。 – Asqan