This question is an exact duplicate:
There are two controllers:
app.controller('myCtrl', function ($scope) { $.get('http://localhost:5000/Nop.Web/auction/GetJsonDataByExtId?ExtId=' + ExtId, function (data) { $scope.carsname = data[0].Name; console.log('JSON GOT IT: ' + data[0].Name); }); }); app.controller('myCtrl2', function ($scope) { $.getJSON('http://localhost:5000/Nop.Web/auction/GetJsonData', function (data) { console.log('List of objects: ' + data); }); }); And the markup:
<div ng-controller="myCtrl"> <h1>Angular got it: {{carsname}}</h1> </div> <div class="col col-md-12" ng-controller="myCtrl2"> <ul class="bxslider3"> </ul> </div> The first receives one JSON object, the second - a set of JSON objects.
It is required that the first one data[0].Name , and the second one data[0].Name list of data[i].Name