My html code.
<div ng-repeat="text in collection">
<h3>{{text.caption}}</h3>
</div>
My json string.
$scope.collection= [{"caption": "HELLO CAPTION 1","content":"SomeContent"}];
I have to use 'ng-repeat' in my html code even if there is only one key value pair. Is it mandatory to use ng-repeat for getting a single json string?