So where did you move your app.js to? From www to another root directory?
I did the same thing (moved my sources to “src” and used “www” as the output directory for Cordova builds).
All I had to do then is in your “ionic.project” file I had to put:
I also used a very different (more modular) directory structure (with sources under “src” and Cordova builds going under “www”), but the location of my ‘app.js’ is still the same relative to my “root” directory (src).
In case you are interested you can see my structure here.
ionic app is trying to inject any service you add into your app.js. Right now it’s not possible with custom locations, but you can turn it off. Custom file structures are something we’re adding down the road.
Ah ok cool. I knew what it was trying to do but hoped there was a config key to define the custom location. Nevermind though, now I know what it’s doing, I can restructure to fit it’s needs as well as mine