Hello:
I have two examples of AngularJS code. This is the first:
$http.get("json/menuBar.json").success(function(data){
$scope.barra = data;
});
and this is the second:
$http.get({method:'GET',url:'json/menuBar.json',cache:true,responseType:'json'}).success(function(data){
$scope.barra = data;
});
The first works fine but the second gives a 404 error because the get request is calling to an strange URL: "/Angular%20web/%5Bobject%20Object%5D".
Does someone know where is my error?
Thank you in advance