I'm still new to development using AngularJs and I'm having trouble accessing an API:
.controller('RegulamentoCtrl', function($scope, $state, $http, $ionicPopup, AuthService) {
$http.get('http://rest-service.guides.spring.io/greeting')
.then(function(response) {
alert('teste');
}, function(err) {
alert(err)
});
})
When trying to access this service, which returns me a JSON, I get the following error message:
Error: Unexpected request: GET link No more request expected