- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created a new app, made no code changes and launched the emulator. If I bring up the debug console I see the following errors:
- Failed to load resource: the server responded with a status of 404 (Not Found) http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/slick/Development/XDK/AutoPartPricing_Ionic/www/cordova.js
- Uncaught TypeError: Cannot read property 'hide' of undefined app.js:6
I don't know if this is new in the latest release of XDK since this is the first time I'm trying out Ionic with Angular in XDK. Build looks to be 3357 of XDK
index.html
<!DOCTYPE html> <html ng-app="ionicApp"> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title>Ionic-AngularJS-Cordova</title> <!-- Ionic framework - replace the CDN links with local files and build --> <link href="lib/ionicframework/ionic.min.css" rel="stylesheet"> <script src="lib/ionicframework/ionic.bundle.min.js"></script> <script src="js/app.js"></script> <script src="cordova.js"></script> <style> .box {height:300px;padding: 10px} </style> </head> <body ng-controller="AppCtrl"> <ion-header-bar class="bar-positive"> <h1 class="title">Title</h1> </ion-header-bar> <ion-content padding="true"> <p>Hello World</p> </ion-content> </body> </html>
app.js
angular.module('ionicApp', ['ionic']) .controller('AppCtrl', function() { ionic.Platform.ready(function() { navigator.splashscreen.hide(); }); });
- Tags:
- HTML5
- Intel® XDK
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please try debugging it with the Debug tab and see if that makes a difference.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page