I have seen a number of posts about the browser test not loading cordova.js so do I assume that its not loading angular-resource.js either.
I didnt really follow the argument that ionic being a hybrid dev platform meant that not loading js libs in the browser was a good thing, seems to me impossible to test if its not loading the cordova and angular js files.
Any help really appreciated as without $resource my app is dead in the water ( or at least screaming in a vacuum)
I’ve always formatted my controllers like this so that the variables added via dependency injection are provided to the controller via an array. Perhaps this could explain why there is a missing dependency in your app?
hi, @duuuudeman , i same the problem. but i create services.js (starter.services as module name) for instance ng-resource($resource) but error? sometihing wrong?
i have add depedency in App.js ['starter.services'] and injected in controller. but still error.
I got it to work easily in my browser. But when I deploy the app to my phone, the data can’t be written (I’m trying to read a local json file from the JS folder)
Some of the dependencies are not included in default ionic bundle. So you want to use that services, need to include it manually on your index.html page below the ionic bundle js.