Is there a way to call history.pushState()
without angular going into an infinite digest loop?
I\'m trying to migrate my app from backend routing to fro
This is what we do in an Angular 1.2.16 app based on this github comment: https://github.com/angular/angular.js/issues/3924#issuecomment-48592773
$location.url(myNewUrl);
$location.replace();
$window.history.pushState(null, 'any', $location.absUrl());
This code is part of a controller. I'm using it to add a query param to the url without wanting to reload the page. It works in our case.