Ionic + cordova, inverting js include dependences in index.html



I’m using angular with cordova. Before starting with ngCordova, I wanted to test cordova alone so I followed your example in:

In this example, we can see that ionic.bundle.js is loaded before cordova.

Just to test, I decided to invert the loading order so I put cordova.js in first flace and then, ionic.bundle.js

When I used it in in my samsung table, I get a reference error (Uncaught ReferenceError: angular is not defined) each time I call angular (ex: angular.module(‘starter’, …)

If I remove the dependence to cordova.js and I let just ionic.bundle.js, everything works.

Someone has the same problem?

Thank you in advance.

(I made the same question in stackoverflow but I had no answer: