Closed calidion closed 10 years ago
if the route is needed. The better way would be change the url thougth server side.
That's kind of a non-starter, because re-bootstrapping angular all the time would be a pretty bad user experience.
most dynamic page needs not page transition. it needs it's use to be focus on the interaction.
You can use ui-router to change states without changing the url, and I believe other modules have been written for this too.
in fact, i mean angular should be able to running in a routeless way!
You can add target="_self"
to your anchors if you really want to do that, but you probably don't really want to
i want my application running in only one url. because the transitions are based on interactions with user not with url. not need to load template from remote server. i don't want the transitions to be triggered by urls but by dom events.
in effect, the loading of the templates from remote servers is no much faster than reloading whole html pages from the server side. and it is even useless for content heavy sites. and they need no angular js at all.
I think it is a wrong way to have javascript based browser side routing. the brower side needs interaction and events handling not templating and routing.
so don't use routing, but you still have the overhead of recompiling your DOM every time you load a page which DOES use angular, and it sounds like you do have such pages, otherwise you wouldn't be submitting this issue here.
ui router is still url based.. i do need templates. but i do need no urls.
multiple states can share the same url
thanks, i should look into it.
most dynamic pages need no page transition. they need their users to be focus on the interaction.
if the route is really needed. The better way would be change the url through server side.
so the Route in angular should be hidden!