Reputation: 1775
My AngularJS app is running smoothly on the browser. When putting it in a cordova app and running on a device,
src/directives/js/nothing.js
angular.module('myModule')
.directive('nothing', function () {
return {
templateUrl: '../src/directives/html/nothing.html',
restrict: 'A',
scope: true
};
});
My template HTML is at:
src/directives/html/nothing.html
The error:
Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///android_asset/src/directives/html/nothing.html
Error: error:tpload
Error Loading Template
As said, on the browser it works.
Upvotes: 0
Views: 3024
Reputation: 41
also its very important to note that the CaSE in the url must match exactly on IOS or you will also a super hard to track error.
Upvotes: 2