I have the following object.
$scope.sampleObj =
{
"id": 10000,
"transactionid": "gec43434",
"status": "COMPLETED",
"session_id": "TTYUU455667"
}
Now I need to show this object key in Label and value in text area using ng-repeat
. Essentially I want to use ng-repeat
on object properties, is it possible?
I have to use something like :
<div ng-repeat="eachProp in sampleObj">
<label> {{eachProp.key}} </label> <textarea ng-model="eachProp.value"> </textarea>
</div>