In angular, given a $scope like this
$scope.colors=[{
"key":1,
"color":"yellow"
},{
"key":2,
"color":"pink"
},{
"key":3,
"color":"black"
}];
If I want to access one of the properties in the view I can do it like this
{{colors[2].color}}
But if I don't know in advance what would be the order of the elements in the scope, would it be possible, for example, calling the property color of the object whose key is 1? Something like {{colors["key"=3].color}}
but in an "Angular way". Thanks in advance!