$http.get('localhost:8080/myApp/Login).success(function() {.....
…..
…
});
I want to replace 'localhost:8080/myApp with the host where I will deploy my project with project name at that time …
What I am doing is that using angular I am mapping the URL to spring controller method . So I don't want it to be static I want 'localhost:8080/myApp to be taken dynamically where I am deploying my project with the project name …
While working Projects name: myApp Host:localhost:8080
When deployed Projects name: myApplication Host:www.xyz.com
So my $http.get('www.xyz.com/myApplication/Login). success(function(){... …. …});
Update:I also want my project name to be automatically taken in which my js and Java controller is there