Hacker News new | ask | show | jobs
by skykooler 4116 days ago
An issue I've found is that the URL stays in the address bar. This seems to be caused by Angular adding "#/" to the page URL after it is loaded - any idea how to fix this?
1 comments

Be sure to link it to the #/ address if you're using the plugin. I had the same problem, this is because the router is redirecting all to the #/-address.
I haven't looked at the app, but if he enables html5 mode you can drop the hash suffix on urls.

https://docs.angularjs.org/guide/$location

I ended up rewriting the page without any JS frameworks - now it's a lot more compact. Index.html: http://pastebin.com/EwUDuhYG
Neat, thanks for sharing! I ended up using a framework because I had plans to make this easy to customize and add a few more features.