<!DOCTYPE html> <html> <head> <title> </title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> <script type="text/javascript"> var app = angular.module('myApp', []); app.controller('myCtrl', function ($scope, $http) { //$http.get('http://localhost:24844/SettingsRestService.svc/GetListitems/12') $http.get('http://demo3.engquote.co.in/SettingsRestService.svc/GetListitems/12') .then(function (response) { $scope.Customer = response.data.RESTGetListitemsResult; }); }); </script> </head> <body> <div ng-app="myApp" ng-controller="myCtrl"> <table class="table table-bordered"> <thead> <tr> <th> Customer ID </th> <th> Company Name </th> <th> City </th> </tr> </thead> <tr ng-repeat="x in Customer"> <td> {{x.ListItemID}} </td> <td> {{x.ListItemDescription}} </td> <td> {{x.ListGroupID}} </td> </tr> </table> </div> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)