i'm having a problem to display a element of a JSON in the html
Here is the JSON
peopleList: [
{
name: 'John',
address: 'Street A, 143',
sons: [{
First: "Jack",
Second: "Jane",
Third: "Maria"
}]
}]
And here is the html
<div ng-repeat="people in peopleList">
<span class="">name: {{people.name}}</span><br>
<span class="">sons: {{people.sons}}</span>
</div>
And this show Sons: [{"First": "Jack", "Second": "Jane", "Third": "Maria", "_id": "5604e8e474758451s6d813"}]
I have tried to use
people.sons.First
but didn't showed anything
{{people[0].sons[0].First}}ng-repeat="name in names"and people?. Or, does they depend?