In my Angular project, I have set up event listener for $locationChangeSuccess
using the following code:
$scope.$on('$locationChangeSuccess', function(event) {
console.log('Check, 1, 2!');
});
While this works perfectly when navigating to a new link, the console only logs the location change event at that time. As expected, this behavior does not trigger on a page refresh. So, my question is, how can I configure Angular to listen for $locationChangeSuccess
even when the page is refreshed?