ng-model in ng-repeat - how to send values to server
<p>im using ng-repeat to create dynamic number of textboxs.</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;div class="orgevent" ng-repeat="i in getNumber(numOfEvents)  track by $index"&gt;
  &lt;input class="dest" type="text" value="Free text" ng-model="i.freeText"&gt;
&lt;/div&gt;</code></pre>
</div>
</div>
</p>

<p>i want (on click) to take the values that the user write in the textBox and send it to the server,
how can i do it?</p>

<p>i tried to take it in the JS by ng-model but the value is always "undefined"</p>