Use UrlRouter by default?
dandv opened this issue · 2 comments
The book uses HashRouter by default, and has to explain what a hashbang is in the Getting Started chapter. Hashbangs are ugly, deprecated, and modern web apps no longer use them. I posted about this on the forum two years ago.
Using UrlRouter would and make the app look more modern, at the expense of some more setup on the server.
The book uses HashRouter by default
Well, the book just tells that Jet uses it by default :)
Thanks, I will add a line about the hashbang in the chapter.
UrlRouter in the production app requires special configuration from a server-side ( URL redirects )
HashRouter doesn't require any extra configuration, so it is more suitable for "Getting Started"
The code itself allows to use any kind of routing as well as customize the hashbang content.