Hi Guys,
I got ngCordova working on Intel XDK.
How to include ngCordova on Intel XDK:
A. Projects Tab ->Third Party Plugins
->Get Plugin from the Web
->Url, ID (from.xml), assign a Name
B. Index.html -> Include in the following order:
<script src="lib/ionic.bundle.min.js"></script>
<script src="lib/ng-cordova.min.js"></script>
<script src="cordova.js"></script> !important
->Make sure to download and include "ng-cordova.min.js" in the directory
C. App.js -> Include ‘ngCordova’ dependency injection.
D. Controller.js ->’$ionicPlatform,’$cordovaPlugin’ dependency injection
-> wrap the plugin code inside $ionicPlatform like this:
$ionicPlatform.ready(function() {
$cordovaPlugin.someFunction().then(success, error);
});
E. Build the App
Hope this helps.