I have a single page Angular + bootstrap app where the user can enter their username (no password) into a text input and their user info will be displayed on screen.
I wish to make it so that when a user's info is displayed on the screen, the URL changes accordingly.
Eg: Entering this URL should directly into the browser: localhost:3000/user1
should instantly open user1's info, without having to enter it into the textbox on my apps main screen.
Also, when you load the apps main screen, and enter user2
into the text input and search, after the users info is loaded into the screen, the URL should change to localhost:3000/user2
automatically.
You should know that my app is a single page app and does not already have angular routes introduced.
I just want to know what approach I should take. Thanks.