XMLHttpRequest can not load when loading a json by GET

0

This is my code.

var app = angular.module('adminPanel', []);

app.controller('namesController', function($scope, $http) {
     var root = 'http://samp.newclan.com.uy:3000/api';

$http.get(root + "/users")
    .then(function (response) {
    $scope.names = response.data;
    });
});

And this is the error that returns

    
asked by Santiago D'Antuoni 03.01.2017 в 19:35
source

0 answers