title: angular ng-repeat needs changes in data that is obtained from json
body: <p>I have a JSON object that does not have proper data. So i want to replace the obtained value with one from a lookup table, but I'm not sure how to replace the value of the data corresponding to the lookup table.</p>
  
  <pre><code>lookupTable = {
    "pizza": function() {
      console.log("food");
    },
    "house": function() {
      console.log("building");
    },
    "air": function() {
      console.log("nothing");
    }
  };
  $scope.value =lookupTable["pizza"]()
  </code></pre>
  
  <p>my html file has </p>
  
  <pre><code>&lt;tr ng-repeat="x in names"&gt;
      &lt;td&gt;{{ x.lookupTable["pizza"]() }}&lt;/td&gt; 
  </code></pre>
  
  <p></p>
  
  <p>My code is at <a href="http://plnkr.co/edit/w4lOFVRo9vSi8vqfbpXV?p=preview" rel="nofollow">http://plnkr.co/edit/w4lOFVRo9vSi8vqfbpXV?p=preview</a></p>
  
  <p>Any help is appreciated!</p>