It defines the URL representation of the application objects on the router and contains the incoming route value from the URL.
Let us carry out the following steps to see how the above code works −
Save the above code in the routes.htm file.
Open this HTML file in a browser.
NOTE − The above functionality is related to the address bar. So, when you open the above code in the browser, it will show as follows.