1. Remove ng-app attribute from <HTML> tag.
2. Add below code in your index.html:
<script>
// Wait for Cordova to load
document.addEventListener("deviceready", onDeviceReady, false);
// Cordova is ready
function onDeviceReady() {
app.services = angular.module('services', ['ngResource']);
angular.bootstrap(document, ['ionicApp']);
}
</script>
2. Add below code in your index.html:
<script>
// Wait for Cordova to load
document.addEventListener("deviceready", onDeviceReady, false);
// Cordova is ready
function onDeviceReady() {
app.services = angular.module('services', ['ngResource']);
angular.bootstrap(document, ['ionicApp']);
}
</script>
No comments:
Post a Comment