I'm new to angular and now i'm trying for 2 days to work with http... but 
it wont work. At the moment i have:

// Controller: Friends
.controller('FriendsController', function ($http) {
    $http({
        method: 'GET',
        url: 'https://myurl.com:8890/api/v1/jwt/auth'
    }).then(function successCallback(response) {
        console.log('The msg is:'+response.msg);
    }, function errorCallback(response) {
        console.log(response.msg);
    });
});


Firefox DevTools show me the Api-Call is working. I got an 200 and also the 
data. But angular logs: The msg is:undefined Hope somebody can help

thx
Norman

-- 
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.

Reply via email to