title: Calling a function in ng-repeat?
body: <p>If I had some code similar to this, how would I go about calling the <code>getUserName()</code> function inside the <code>ng-repeat</code>. I attempted to do it earlier and it worked, however, it no longer functions. </p>
  
  <pre><code> var user_reviews = [{
       user: {
           name: "John Doe"
       },
       review: {
           item: "Shure SE215"
       }
   }]
  
   var app = angular.module("ExApp", []);
   app.controller("TestController", function($scope) {
       $scope.reviews = user_reviews;
       $scope.getUserName = function() {
           return $scope.user.name;
       }
   });
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;div ng-controller="TestController"&gt;
    &lt;div ng-repeat="review in reviews"&gt;
      &lt;p&gt;{{review.getUserName()}}&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt; 
  </code></pre>