ui-router
ui-router copied to clipboard
Ui Routing Problem
Hey guys, can somebody help me with the below I have 4 types of functionalities and the below is the routing structure for that. I am using angular ui router and the below are the states/URLs
/data -- SHOW the list of data /data/ -- ADD new data /data/{id} - VIEW the specific data record with Id /data/{id}/ - EDIT the specific data record
Now the problem is .. when I request for ADD state which is ' /data/ ' it is matching the VIEW state which is /data/{id} and I am ending up seeing VIEW page. I believe the state is being served with /data/ with id as ' ' .
Any suggestions??