I have a json data like this
[{
"ID":699,
"key":"directorname",
"value":"SampleValue"}
,{
"ID":700,
"key":"template_post_type",
"value":"Sample2ndValue"}]
Now for example I want to retrieve value by "directorname" key.
Is it possible to retrieve value in AngularJS without using repeat syntax?
Note: I want to show value in view (html).
data {"fields": ["directorname", "template_post_type"]}
view structure:
<div ng-repeat="thekey in data.fields">
<span>here for value</span>
</div>