3 ms·
It certainly has its advantages. I would even say if you can get to a point where your app is totally static, you should do it. But if there's even a little ser
by badman_ting 13y ago
It certainly has its advantages. I would even say if you can get to a point where your app is totally static, you should do it. But if there's even a little server-side state things can get complicated pretty quickly.
For example, say your app uses hash/fragment URLs, and users need to be logged in to access the app. A user hits yourapp.com/#/whatever, but isn't logged in, so you bounce them to the login page. Except, oops, the hash/fragment doesn't get sent to the server, so your login page doesn't know where to redirect the client after logging in.
- ethikal 13y agoThere are ways around this. With ember it is possible to use browser history to mask the hash... http://emberjs.com/guides/routing/specifying-the-location-api/ http://emberjs.com/guides/routing/specifying-the-location-ap...