BobRoss BobRoss - 3 months ago 7
AngularJS Question

How to implement post correctly with angularjs

below I've posted my angular and html code, along with the json data I want to display. Specifically, I want to be able to do

and have the clients in a list. Unfortunately, the only thing that works is when I do
which gives me the whole json object which I don't want. I'm new to angular, and I know I'm obviously doing something wrong, but I'm not quite sure what. Any help is appreciated!

<body ng-controller="myController">
<li ng-repeat="client in userData">


var app = angular.module('myApp', []);

app.controller("myController", function ($scope, $http) {

url: 'myURL/blah/blah',
method: 'POST',
data:{"common": {"clientName":"6012"},"qualifier":"$ALL.$ALL.$ALL.$ALL.$ALL","pattern":"configs\\..*"} ,
headers: {'Content-Type': 'application/json'}}).success(function(data){
$scope.userData = data;



"label":"American Airlines"
"label":"Amazon Fork"
"label":"Best Buy"
"label":"Bank of the West"
"label":"Red Leaf"
"label":"First Citizens"
"label":"Home Depot"
"label":"Toronto Dominion"


Change the ng-repeat to this:

<li ng-repeat="client in userData.parameters[0].value">