I can give you sample javscript page from which you can take reference:
Let you are having controller in which you have doAdd function defined as under:
var path = '/calc/add' + '$scope.a' + '/' + '$scope.b',
if(location.path == path)
From above the main thing to be added must be $route.reload().
Hope this will solve your problem.