I came across a question that has been asked before on Stack Overflow, but unfortunately, it remains unanswered and without any comments.
In my Angular app, I am working with a single route and I want to find a way to eliminate the #
from the URL.
If I had multiple routes in my app, I would use html5Mode
with ui.router
. However, since there is only one route, adding uiRouter seems unnecessary and I'm hesitant to include it just to remove the #
.
Currently, my URL looks like www.myapp.com/#?name=johnsmith
, but I aim to have it displayed as www.myapp.com/?name=johnsmith
.