Angular - Module   angular.module('demo', []) .controller('Hello', function($scope, $http) { $http.get('http://rest-service.guides.spring.io/greeting'). then(function(response) { $scope.greeting = response.data; }); }); HTML file to Show Output i.e. data as retrieved from REST call --- <!doctype html> <html ng-app="demo"> <head> <title>Hello AngularJS</title> https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js http://hello.js </head> <body> <div ng-controller="Hello"> <p>The ID is {{greeting.id}}</p> <p>The content is {{greeting.content}}</p> </div> </body> </html> […]

Read more of this post