Can someone help me fix this Json $routeScope?

Please, I’m trying to show to data form .run to my .controller(‘customersCtrl’), can someone solve it?

http://jsfiddle.net/lucassimines/TmPk5/227/

Always check the console.

$http is no defined


The request you want to make is not being made. Prepend to the url // or http://


Maybe creating a service would be a good idea. For now, just comment wherever you see this:

$scope.names = $rootScope.names;

1 Like

I added the http:// and commented the $scope.names = $rootScope.names;

how do I create a service for this?

thanks.