I am using angularJS $location service for routing change,
the problem is $location.url(someUrl)
is asynchronous but doesn't return promise.
So I searched for some solution for this and found these events:
$scope.$on('$locationChangeSuccess')
$routeChangeStart
$routeChangeSuccess
but these events not happening for example when the URL provided to $location.url
function is the same as current,
I'm seeking for some robust solution to be ensured that $location.url
has finished it's work