I am trying to reference the key value from one repeat value to another. The concept is a bit complex, but you can see an example in this jsfiddle http://jsfiddle.net/u75us/163/
What I want to accomplish is getting the f_column value from the key_var array and using that same key value to retrieve a corresponding value from the value_var array.
Please note that the code in the jsfiddle will generate an error because the syntax {{val.{{key.f_column}}}} is not valid in angularjs. This is just pseudocode representing what I aim to achieve.
Is there a way to achieve this functionality?
<ul ng:controller="Cntl">
<li ng:repeat="key in key_var">{{key.f_column}}
<li ng:repeat="val in value_var">{{val.{{key.f_column}}}</li>
</li>
function Cntl() {
this.value_var = [
{"v_a":"a" , "column1" : "v1" },
{"v_a":"a" , "column2" : "v2" }
]
this.key_var = [
{"f_column":"column2"},
{"f_column":"column1"}
];
}