i have json array like following
var data = [
{
id: 1,
name: "abx",
},{
id:2,
name: "silver"
}
];
is this possible in angularjs. i can display name of json according to assign value like
var x = 2;
{{data.x.name}}
i mean if have id of row is 2 then i just want to show {{name}} directly not want to add looping code and match id == record.id