We are using angularJS and angular ui-router and want to change the URL in the address bar but keep the view/state the same.
I have tried using history pushstate but I am having conflicts with it causing an infinite $digest loop.
I have also tried the method described in sync() https://github.com/angular-ui/ui-router/wiki/Quick-Reference#urlroutersync - which is essentially calling preventDefault
on $locationChangeSuccess
. However, this doesn't seem to work - as demonstrated by this plunkr: http://plnkr.co/pLC2Ai
Does anyone know of any solutions to this issue?