title: How to split a string in angular 2
body: <p>I have an email sending scenario in which there is an input box of 'To'(whom you want to send a message).</p>
  
  <blockquote>
    <p>app.html</p>
  </blockquote>
  
  <pre><code> &lt;input type="text" class="form-control" [(ngModel)]="email.Tos"&gt; 
  </code></pre>
  
  <p>Now I want that when a user input the multiple emailId in input box by comma separated, then in my model,  'Tos' value should bind in an Array of string. 
  Like : ["abc@gmail,com" , "xyz@gmail.com"].</p>
  
  <p>Now, please tell me how to split the input box value as per my requirement.</p>