[jdf-users] New comment posted on kitchensink-angularjs: Shows how to use AngularJS with JAX-RS and Java EE on JBoss

Disqus notifications at disqus.net
Thu Oct 3 02:32:28 EDT 2013



Esteve <eavilesa at gmail.com> wrote, in response to Vineet Reynolds:

Vineet,

Angular documentation states that html5 mode requires server side configuration:
http://docs.angularjs.org/guide/dev_guide.services.$location
"Server side
Using this mode requires URL rewriting on server side, basically you have to rewrite all your links to entry point of your application (e.g. index.html)"

If no server configuration enabled when you request a RESTful url (without angularjs links) you get a HTTP 404 page not found, obviously. 

I think the solution would be enabling a url rewrite servlet for all http requests to the /index.html.

I will try it.

Thanks in advance.

Regards,
Esteve

IP address: 213.0.57.3
Link to comment: http://redirect.disqus.com/url?url=http%3A%2F%2Fjboss.org%2Fjdf%2Fquickstarts%2Fjboss-as-quickstart%2Fkitchensink-angularjs%2F%23comment-1068364469%3AspFifcttrgTq5UqMx4JW1Sf0g_s&impression=92a65142-2bf5-11e3-8964-00259035ce46&type=notification.post.moderator&event=email&behavior=click

Vineet Reynolds wrote:

Esteve, could you please expand on this issue you've faced? HTML5 mode for AngularJS routers is dependent on the browser's capability. This mode would work for some browsers but not for all. Going by the AngularJS documentation here: http://docs.angularjs.org/guide/dev_guide.services.$location , you should see the hashbang URLs employed for older browsers, but the RESTful URLs in newer ones.

-----
Options: You can moderate through email. Respond in the body with "Delete". Reply with "Like" to like this comment, or respond with anything else to approve this comment and post your message as a reply comment.

Or use the moderate panel: http://jdf.disqus.com/admin/moderate/#/pending


Stop receiving notifications when new comments are posted:
http://disqus.com/account/#notifications
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jdf-users/attachments/20131003/b448de5e/attachment-0001.html 


More information about the jdf-users mailing list