AngularJS – Reading JSON data

Hi Friends
AngularJS service provide read the data from remote servers using $http. $http.get(url) is the function to use for reading server data.

var app = angular.module(‘myApp’, []);
app.controller(‘customersCtrl’, function($scope, $http) {
.success(function (response) {$scope.names = response.records;});

AngularJS is quickly becoming the dominant JavaScript framework for professional web development.

Leave a Reply

Your email address will not be published. Required fields are marked *