TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Angular JS Gotcha: HTML5 Mode Routing

16 pointsby pairingover 11 years ago

4 comments

egeozcanover 11 years ago
This isn&#x27;t some magic from AngularJS, it is a standard HTML5 API and it&#x27;s been around for a while. It is designed to allow single page applications to use beautiful URLs. So, this isn&#x27;t an AngularJS gotcha. Not at all. You can read more about it here: <a href="http://diveintohtml5.info/history.html" rel="nofollow">http:&#x2F;&#x2F;diveintohtml5.info&#x2F;history.html</a>
评论 #7057736 未加载
nateabeleover 11 years ago
Here: <a href="https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions#how-to-configure-your-server-to-work-with-html5mode" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;angular-ui&#x2F;ui-router&#x2F;wiki&#x2F;Frequently-Aske...</a><p>You&#x27;re welcome.
a_soncodiover 11 years ago
Switching between HTML5 and &#x27;hashbang&#x27; URLs lets you run apps in environments which lack support the history API or absolute URLs. Examples include old IE and Cordova. The bit of webserver config necessary is a non-issue, imo.
strommenover 11 years ago
So what you&#x27;re saying is...when you set the URL to something that no longer points to a Resource, it no longer works?<p>Who could have guessed that undermining a basic concept of the Web might cause problems.