My current project involves using Angular with ui-router. I'm looking to achieve a specific functionality where various links, such as:
/
/contacts
/contacts/:id
should all display the same content as the link /contacts/:id, but with a default :id parameter. Additionally, I want the URL to remain unchanged and not switch to /contacts/:id.
While there is documentation on the ui-router wiki that addresses this issue, it does not provide a demo for initializing grandchild or deeper descendant states.
I've experimented with different state settings without success. Could it be that I am implementing it incorrectly? Feel free to take a look at my sample page:
ui-router-test