To see the demonstration on jsfiddle, click the following link: http://jsfiddle.net/HB7LU/13213/.
In order to select the correct data within the accountIds
, you must utilize dot notation.
Here is how it can be implemented in HTML:
<div ng-controller="MyCtrl">
<select>
<option ng-repeat="item in items.accountIds">{{item}}</option>
</select>
</div>
And here is the corresponding JS/Angular code:
var myApp = angular.module('myApp', []);
function MyCtrl($scope) {
$scope.items = {
"id": 1,
"firstName": "John1",
"lastName": "Doe1",
"accountIds": [12345, 12346, 12347],
"recipients": [{
"accountNumber": 22222,
"firstName": "Mary1",
"lastName": "Jane1"
}, {
"accountNumber": 33333,
"firstName": "Mary2",
"lastName": "Jane2"
}]
}
}