title: HTML5 mode with Phonegap and AngularJS
body: <p>I'm trying to make AngularJS html5 mode (true) works with Phonegap.
  I did a lot of search before to post this, I tried different combination of
  configurations, adding the &lt;base/&gt; tag in meta ( also tried with &lt;base href="" /&gt;, &lt;base href="/" /&gt; and &lt;base href="/" target="_self" /&gt; ),
  adding the .html suffix to route endpoints,adding the $delegate.history = false (like follow) inside the .config block</p>
  
  <pre><code>$provide.decorator('$sniffer', function($delegate) {
      $delegate.history = false;
      return $delegate;
  });
  </code></pre>
  
  <p>and obviously</p>
  
  <pre><code>$locationProvider.hashPrefix('!');
  $locationProvider.html5Mode(true);
  </code></pre>
  
  <p>but there is no way to make it works, adding both the  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.</p>
  
  <p>Adding base tag with "android_asset" like follow </p>
  
  <p></p>
  
  <p>will make correctly load the main controller but then breaks routing....</p>
  
  <p>Tested with target attribute "_blank" and "_self" values...</p>
  
  <p>So my question is,
  can html5 mode be enabled using Phonegap and AngularJS?</p>
  
  <p>I am using cordova version 3.4.1-0.1.0 with AngularJS 1.2.16, 
  tested on Android 4.0.4 real device and Android AVD 4.4.2</p>
  
  <p>Any advice would be very appreciated! 
  Thanks</p>