I pushed few array of objects into an empty array which I then want to display on the html.
$scope.displaypersons = [
[{name: "abc"}],
[{name: "pqr"},{name: "lmn"},{name: "rst"}],
[{name: "uvw"},{name: "xyz"}]
]
In html
<div ng-repeat="person in displaypersons">
{{person}}
<!-- {{person.name}} doesn't work -->
</div>
But after iterating, I'm getting this way:.
[{"name": "abc"}]
[{"name": "pqr"},{"name": "lmn"},{"name": "rst"}]
[{"name": "uvw"},{"name": "xyz"}]