title: pass AngularJS object value from ng-repeat to AngularJS function
body: <p>I am trying desperately to pass a Angular object value onto a function. The various attempts have resulted in no progress, and the only time I got it to work properly when I hard code the values.</p>
  
  <p>The MVC View:</p>
  
  <pre><code>&lt;tr ng-repeat="project in projects | filter:search:strict"&gt;
  &lt;td&gt;&lt;span&gt;&lt;a style="cursor:default" title="Ändra i projektet.." id="{{project.id}}" data-ng-click="opents('/EditProject/', '{{ project.id }}')"&gt;{{ project.id }}&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
  </code></pre>
  
  <p>The Angular function:</p>
  
  <pre><code>$scope.opents = function (tsUrl, id) {
          alert('/EditProject/'+ $attrs);
          alert(tsUrl);
          alert(id);
          alert(tsUrl + id);
          TINY.box.show({ url: tsUrl + id });
      };
  </code></pre>
  
  <p>I've tried to recieve different values from the invoke in the view, hence the many alerts. Can't find a solution for this from the web and hope someone knows of a solution.</p>