Hi Everyone, 
I'm trying to make html5 mode (true) works with Phonegap.
I did a lot of search before to post this, I tried different combination of 
configurations, adding the <base/> tag in meta ( also tried with <base 
href="" />, <base href="/" /> and <base href="/" target="_self" /> ), 
adding the .html suffix to route endpoints,adding the $delegate.history = 
false (like follow) inside the .config block

$provide.decorator('$sniffer', function($delegate) {
  $delegate.history = false;
  return $delegate;
});


and obviously 

      $locationProvider.hashPrefix('!');
      $locationProvider.html5Mode(true);

but there is no way to make it works, adding both the <base> tag and set 
html5Mode to true will result in a blank screen when application starts.
Also adding one of them will bring to the same result, blank screen.


So my question is, 
can html5 mode be enabled using Phonegap and AngularJS?

I am using cordova version 3.4.1-0.1.0 with AngularJS 1.2.16

Thanks


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to