In AngularJS, a service is a function or object that can be used in your AngularJS app.
More than 30 services are built in AngularJS.
1. $http Services
$http is the most commonly used service in AngularJS applications. The service sends a request to the server to apply the data sent by the response server.
$http. Get ("http://www.runoob.com/try/angularjs/data/Customers_JSON.php") = Response.records;});
The above code get request is the server of this station, you cannot copy directly to your local run, there will be cross-domain problem, the solution is to copy the customers_json.php data to your own server, attached: PHP Ajax cross-domain problem best solution.
When loading JSON data from the server,$scope. Names becomes an array.
2.
AngularJS will always monitor applications, handle event changes, and AngularJS use $location services better than using window.location objects.
3.
Angular Common services