Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Ionic/Angular app throwing errors

Brian_N_
Beginner
550 Views

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();
  });

 });
              
              

 

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
550 Views

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

0 Kudos
Reply