title: Getting value from json by setting key from another json
body: <p>I need to get value from json by using ng-repeat that inside another json loop.</p>
  
  <p>I had tried as below.</p>
  
  <pre><code>&lt;tr ng:repeat="tableValueElement in tableValueRows"&gt;
           &lt;td ng:repeat="subHeaderElement in subHeaderColumns" ng-init="map=subHeaderElement.map"&gt;{{tableValueElement.map}}&lt;/td&gt;          
      &lt;/tr&gt;
  </code></pre>
  
  <p>tableValueElement = {"name":"Steve","age":24,"street":"RailwayStreet"}</p>
  
  <p>subHeaderElement = {"colspan":2, "map":"name", "color":"grey"}</p>
  
  <p>and I'm trying to get the value ("steve") from "tableValueElement" by setting key ("name") from "subHeaderElement".
  So the key is the value of "map" attribute in the "subHeaderElement".</p>
  
  <p>But above method is not returning the value from tableValueElement.</p>
  
  <p>Please help.</p>