title: How to get values of input in Angular JS?
body: <p>In Angular JS are created <code>inputs</code>.</p>
  
  <pre><code>&lt;input type="text"&gt;
  &lt;input type="text"&gt;
  </code></pre>
  
  <p>How I can to get values from each inputs and send to server?</p>
  
  <p>I tried:</p>
  
  <pre><code>&lt;input type="text" ng-model="typeInput"&gt;
  </code></pre>
  
  <p>But I get value only one field.</p>
  
  <p>In server I am planning to get data format: <code>$_POST['type'][0] = 'One value'; $_POST['type'][1] = 'Two value';</code></p>
  
  <p>I mean, that I need send to server array of values. For example:</p>
  
  <pre><code>name="type[]" value="1"
  name="type[]" value="2"
  name="type[]" value="3"
  </code></pre>
  
  <p>So, in server I cando loop for check:</p>
  
  <pre><code>foreach($_POST['type'] as $val){
    //prepare
  }
  </code></pre>