I am working on my Front End (Angular Js calling a Rest Service) and this is working fine , i get a nice JSON as response:
$scope.test = function(response) {
$http.get("http://localhost:8080/androbridge/test/dotest"+"?s=ssss").success(function(response){
$scope.related=JSON.stringify(response);
});
While this is not working :
var x;
$http.get("http://localhost:8080/androbridge/einloggen/loggeEin?username=" + $scope.username + "&password=" + $scope.password).success(function(response)
{x=JSON.stringify(response);})
if(x=={"Kennzeichnung":"login","Status":true}){
$rootScope.loggedIn=true;
$location.path('/userPage');
}else {
alert('Wrong Login Information'+$scope.username +$scope.password + x)
}
Anyone see what mistake i make? I cant figure it out!