|
There is the following case: This is the form:
The state is the following
The aim is that on the form submit the url will be changed. So for example if i am looking for cook i want to have
This should be a very common example: After looking for a solution i found the following post: Set URL query parameters without state change using Angular ui-router I changed my controller function to:
The solution looks sub optimal because this should something the ui-router should handle. The symptom we see is that the back button does not work out the box and i have to listen to $stateChangeSuccess. Is there a router solution for this? I am not picky with the router framework solution. I chose ui-router because it is the most advanced i know. If there is no simple solution with the ui-router, would it pay to try the new angular router? |