I have data coming from an array of objects that each have 3 properties:
This code is put into a scope variable so that it can be used on the view.
angular.forEach(result.updatedItems, function (attr) {
$scope.suppList = attr.name;
var test = "";
});
I am now trying to access this list of text values and put it in a dropdown menu:
<ul class="dropdown-menu" style="width:100%">
<li data-ng-repeat="name in suppList track by $index" style="width:100%">{{name}}</li>
</ul>
But the results that drop down only show the 1st letter of the text that is supposed to be displayed:
What am I doing wrong and how do I fix it?

