Searching for a straightforward solution using Angular to manage routes.
I have a webpage generated by the server featuring a basic Google map and some logic spread across three separate controllers.
Now, I aim to integrate routing into this setup. Nothing fancy, just simple routing. As I navigate around the map and obtain new coordinates, I want to append them to the current URL as a parameter, like "?position=10.11,50.23". I prefer utilizing history push state with a hashbang backup.
In another section of the application, I wish to monitor changes to this parameter (perhaps using $watch). Additionally, I want to utilize the same code to detect changes when the page is initially loaded.
I previously worked with CanJS where achieving this was very easy, but in Angular, I'm struggling to even take the first step towards the correct outcome :)
PS: This is just a snippet of a minimal use case.
Thank you