When I do the tests in my local environment with Chrome it works rightly, the issue is only when I try it in the emulator. Nothing is being logged in the console.
Anyway, I think that is “unuseful” because is working rightly in iOS Mobile Safari. Furthermore, I tried to serve my project, with grunt serve, and view it from my iPhone and it’s working also rightly. So, I am starting to think that could be something related to cordova, because if I do a cordova serve, it’s not working either from my iPhone OR desktop Chrome.
I don’t know how to debug it or what else to do. I have one console.log inside the resolve block and another in the controller and both are NOT showed, pretty weird… I hope you guys could give me a hand.
I will try tomorrow to upload a more real project, like mine and be sure that is failing with Cordova. Then, I will post here and let’s see if we can see anything. Thanks you!
I only had to annotate the dependency injection for each resolve, since ngMin doesn’t support ui-router yet. So, for the post example the fixed solution would be:
Nice catch. I don’t like using ngMin myself. However, I also never thought to use the string injection technique inside my resolves; so I was going to git bit on minificatation. Thanks for showing the way.