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?

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?