Currently I'm doing something like this
link.on('click', function () {
if (link.attr('href') !== $route.current.originalPath)
return;
$route.reload();
});
I'm not aware of side effects but I guess there can be some.
Is there more straightforward way to handle this in ngRoute, e.g. through $location
?
What is the way to do the same thing in UI Router when the app will be updated to use it?