hey kartik,
The reason for this is that when you first visit the page (/Edureka_home), e.g. after a refresh, the browser has no way of knowing that this isn't a real URL, so it goes ahead and loads it. However if you have loaded up the root page first, and all the javascript code, then when you navigate to /edureka_home Angular can get in there before the browser tries to hit the server and handle it accordingly.
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:
$scope.doAdd= function(){
var path = '/calc/add' + '$scope.a' + '/' + '$scope.b',
if(location.path == path)
{
$route.reload();
}
else
{
location.url(path);
}
}
From above the main thing to be added must be $route.reload().
Hope this will solve your problem.
To know more about Angular, I would recommend you to join Angular online course today.
Thanks.