Hi! I have a singel page app that now needs to be included in a native 
mobile app. The mobile app developers require that the site should behave 
like a regular site, ie full page reloads on each link click (not optimal 
but I'm not in a position to change the requirements).

I'm using ui-router and I can find no good way of implementing this. I have 
html5Mode=false. I tried the following:
* target="_self" in links - does a full reload but the links lose their 
hash prefix, http://myhost.com/#!/list becomes http://myhost.com/list which 
of course doesn't work.
* catching the "$stateChangeStart" event and trying to prevent the default 
behaviour and doing a real window.location.href redirect but seems 
difficult (might be doable though)

Is there anyone who knows a way to do this? All googling tells me "Why do 
you want to do that? That's not good" - yes I know, but I really need to...

Regards
Peter Björkman


-- 
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