Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Brian_N_
Beginner
109 Views

Ionic/Angular app throwing errors

Created a new app, made no code changes and launched the emulator.  If I bring up the debug console I see the following errors:

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 (2)
0 Kudos
1 Reply
PaulF_IntelCorp
Employee
109 Views

Please try debugging it with the Debug tab and see if that makes a difference.

Reply