Im creating an angular 2 app( previous angular 1 developer ) and im finding it difficult to get angular 2 urls to work with my server.
Basically, angular 2 doesnt use #, which means when an in-app route changes from "/" to pages/1, then angular loads pages/1 component and all data using ajax, and displays the pages. It works nice. However, when user refreshes the pages, then ...the page wont work.
Is there something i can do/configure, to make the angular app to reload the page at "/", but provide some hidden parameters to server like "pages/1" so that after page gets reloaded at "/", angular would know that user wanted to go to "pages/1" and do the redirect.