title: Angular ng-repeat on table with data input
body: <p>The answer appears to be that the two way data binding works if you have an array of objects going to an ng-repeat, but did doesn't work if you have an array of strings.</p>
  
  <p>I wish to provide a UI where users can input multiple recipients.  I've got an array of names called "receivers".  My thought was I could display a table using ng-repeat, like so:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr ng-repeat = "receiver in receivers"&gt;
          &lt;td&gt;&lt;input type = "text" ng-model = "receiver"&gt;&lt;/td&gt;
          &lt;td&gt;&lt;div ng-click = "addRecipient(receiver)"&gt;+&lt;/div&gt;&lt;/td&gt;
          &lt;td&gt;&lt;div ng-click = "deleteRecipient(receiver)"&gt;-&lt;/div&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>The problem I'm running in to is that I know of no way to get the contents of "receiver" back to my controller, other than from the calls to addRecipient or deleteRecipient.  Which makes it hard for me to use that data.</p>
  
  <p>Any suggestions would be greatly appreciated.  If there's a better or "more correct" way to do this, I'd love to see it.</p>