AngularJS $http example
by chauhangs
HTML
<div data-ng-app='httpApp' data-ng-controller='httpAppCtrlr' />
CSS
table tr:nth-child(even) {
background-color: #ffffff;
}
JavaScript
var app = angular.module('httpApp', []);
app.controller('httpAppCtrlr', function ($scope, $http) {
$http.get('/echo/json/$count/圮')
.then(function (response) {
$scope.names = response.data.records;
});
});