Réponse
30, $http service
Colonne
Explication
The $http service is one of the most common used services in AngularJS applications. The service makes a request to the server, and lets your application handle the response.
Example
Use the $http service to request data from the server:
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope, $http) {
$http.get("welcome.htm").then(function (response) {
$scope.myWelcome = response.data;
});
});
Question
About how much built-in services has AngularJS ? One of the most common used ?
Thématique