I'm new in mobile web app development. Phonegap visits my native index.html. That url will be "file://localhost/Users/.../www/index.html". So the $location in AngularJS can not give a right host, when I use $routeProvider. I need a host start in www folder. How to fix it with Angular or Phonegap?
I think you'll want to bake in the URL that your $http requestes will hit, rather than trying to infer from $location.