Good afternoon I'm trying to get a Get request with AngularJs but I do not receive any response and the only console.log that executes is the last that is already outside the request;
angular.module("listaTelefonica").controller("listaTelefonicaCtrl", function ($scope, $http) {
$scope.contatos = [];
var carregarContatos = function(){
$http({method:'GET',url: 'http://www.json-generator.com/api/json/get/ccLAsEcOSq?indent=1'}).then(function(response){
console.log("conexão foi realizada")
console.log(response.data);
}).catch(
console.log("falha na conexão")
);
console.log("falha na conexão")
};
console.log("falha na conexão")