I'm having JSON array. I need to get particular parameter value using ng-repeat in angularjs. I tried using filters and other ways but i didn't got values.
Here is my JSON
{
"UserId":0,
"Name":null,
"ResponseStatus":null,
"Category":[{
"Id":0,
"CategoryName":"Category 1",
"Property":0,
"SubCategory":{
"SubCatId":"5600",
"SubCatName":"Sub1"
}
}]
}
When i used
<p data-ng-repeat="(key,data) in input.model.Category[0].SubCategory">{{key}} :{{data}}</p>
It giving result like this.
<p>SubCatId :5600</p>
<p>SubCatName :Sub1</p>
But i want only SubCatId :5600
using ng-repeat because i want to display this two values in different place.
<p>SubCatId :{{input.model.Category[0].SubCategory.SubCatId}}</p>
– Phil Sep 7 '15 at 5:10