title: Array to string angular
body: <p>New to angular. Please excuse me if this is a very simple question.  </p>
  
  <p>Is there anyway to convert array to string. 
  My controller her the code:</p>
  
  <pre><code>$scope.addRow = function addRow(){     
      $scope.filters.push({ 'Name':$scope.name, 'dept': $scope.dept, 'city':$scope.city});
      $scope.name='';
      $scope.dept='';
      $scope.city='';
  };
  </code></pre>
  
  <p>Now, I want to sent this data to a service as a string</p>
  
  <p>I want it in the format "name,dept,city;name,dept,city". Is there any way to do it?</p>
  
  <p>Service code looks like this:</p>
  
  <pre><code>                $scope.submit = function() {
                     myService.submit({
                        filters :$scope.filters
                   }, function(response) {
                      $scope.response = response; 
                  });     
              };
  </code></pre>
  
  <p>I want to pass the value to filters in format "name,dept,city;name,dept,city" from the array.
  Thanks in advance.</p>