In previous versions of angular, or other SPA frameworks, navigations used to use "#"
in the URL to move from a page to another without make another request to the server.
Today, using Angular 4 routes, I notice that the URL was rewritten without any request to the server. for instance domain.com/about
. It seems very strange to me.
If my SPA is served from a domain.com/index.html
, a request to domain.com/about
should have a side effect bring a totally diferente page (for instance about/index.hmtl
), not a route inside the index.html
.
Change URL without redirect to the address in the URL seems to violate something.. dont?
How Is that possible in Angular 4 using only client side?