I've also found that place "android_asset" value for base 

<base href="android_asset" />

will make correctly load the main controller but then breaks routing....

Tested with target attribute "_blank" and "_self" values...

Any advice would be appreiated



Il giorno giovedì 24 aprile 2014 13:07:03 UTC+2, Sergio Rinaudo ha scritto:
>
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to