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
Use the rewriteLinks option on the $locationProvider html5Mode object:
pageModule.config(function($locationProvider) {
$locationProvider.html5Mode({
enabled: true,
requireBase: false,
rewriteLinks: false
});
});
Afterwards, you should be able to use the $location service properly, such as:
this.$location.path("/mynewpath");