I want to call .get in Angular factory. Can I please have any help why mydata is staying empty. I can see in console that json is loading but mydata variable has no value:
.factory('People', function($http) { $http.get("http://www.example.com/service_2.php").success(function(response) { var mydata = response;});