Hi
I have the following Key Value Pair
*$scope.properties = "Testing",
"{'Key':'Test_Key','Value':'Test_Val'},{'Key':'UUID','Value':'47657-64wefwdd-4ba4-967e-767676743hy'}"*
<tr ng-repeat="*pro *in *properties *">
<td>{{ *pro *.Key }}</td>
<td>
{{*pro*.Value}}
</td>
<td>
<a href="javascript:void(0)"
ng-click="edit(contact.id)"><span class="glyphicon
glyphicon-edit"></span></a>
</td>
<td>
<a href="javascript:void(0)"
ng-click="delete(contact.id)"><span class="glyphicon
glyphicon-trash"></span></a>
</td>
</tr>
{{ *pro *.Key }} = *Testing*
{{*pro*.Value}} = i am getting as
*{'Key':'Test_Key','Value':'Test_Val'},{'Key':'UUID','Value':'*
*47657-64fwerdd-4ba4-967e-767676743hy**'} *thats fine, but I want to
iterate in this as well for Key and Value,
I have tried the following things, but it didn't work for me.
*<div ng-repeat= kvp in pro.value>*
* {{kvp.key}} : {{kvp.value}}*
* </div>*
*<div ng-repeat= (key,value) in pro.value>*
* {{key}} {{value}}*
* </div>*
*<div ng-init= "keyvaluepair={{ pro.value}}">*
* {{**keyvaluepair.key**}} {{**keyvaluepair.**value}}*
* </div>*
Please help,
Thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.