I have a unique query and I'm curious about the possibility of achieving it.
My goal is to dynamically update the URL as users interact with the app. For example, when they click on different elements on the page, I want the URL to reflect the parameters I have defined. An example route could be:
url: 'app/:mod1/:mod2',
In this scenario, certain buttons are linked to specific scopes in the controllers. Let's say:
$scope.mod1 = true;
$scope.mod2 = false;
As users engage with these buttons, I want the URL to adjust accordingly. So, if they change mod1 to false and mod2 to true, the URL should appear as:
/app/false/true
The challenge here is to achieve this without refreshing the page each time. This functionality would allow users to save their progress by simply copying the URL for future use. I would appreciate any guidance or suggestions on how to implement this feature effectively. Thank you for your time!