Hi,
I am learning to use Ionic framework and Angular JS.
I tried to make a http get request to a php file in local host but the
error callback is called with status -1. The file runs ok when i call the
url from my browser.
How can I fix the error?
I'm making the request as follows:
> $http.get('http://localhost:8888/testQuery.php').then(function(response){
> alert('success')
> }, function(error){
> alert(JSON.stringify(error))
});
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.