title: Accepting multiple inputs from one textbox in angular
body: <p>I am stuck when trying to accept input as an array in angular
  here is my code</p>
  <pre class="lang-html prettyprint-override"><code> &lt;input type=&quot;number&quot; [(ngModel)]=&quot;valuesArray&quot;&gt;
  
   &lt;button (click)=&quot;PerformAction()&quot; &gt; find&lt;/button&gt;
  </code></pre>
  <pre class="lang-js prettyprint-override"><code> valuesArray=[];
  
   PerformAction(){
      var results =this.valuesArray[0]-this.valuesArray[1]
      console.log(results);
   }
  </code></pre>
  
  
  <p>I get nothing at the console. Can someone please help me?</p>