title: AngularJS format array values in textarea
body: <p>I have a angularJS application, in which I have an array.</p>
  
  <pre><code>  $scope.data[0] =  x1;
    $scope.data[1] =  x2;
  </code></pre>
  
  <p>and a text area </p>
  
  <pre><code>  &lt;textarea ng-model="data"&gt; &lt;/textarea&gt;
  </code></pre>
  
  <p>I can see the that textarea contains values x1, x2 (separated by comma). I want to show the values on separate lines. Meaning all array values should be separated by new line character not by comma. Do I need to write filter for this?</p>