title: Autocomplete angular js from php array with json and $http
body: <p>I have to made something like this <a href="http://plnkr.co/edit/9zsrvLLfH8hKGwmIeZVv?p=preview" rel="nofollow">plunker</a> I found, an autocomplete, but I have to use a php array, using <code>$http</code>. </p>
  
  <p>If I put an alert to see my array, works fine, but I don't have any idea of what I have to do to make this filter in angularjs :(</p>
  
  <p>My $http:</p>
  
  <pre><code>/*CONNESSIONE HTTP -------------------------------------- */  
  $scope.connessione = function (){
      $http({method: 'GET', url: 'http://www.fattura.local/contatti.php'}).
  
      success(function(data, status, headers, config) {
          alert(data);        
      }).
  
      error(function(data, status, headers, config) {
          alert("errore.");
      });   };    }]);
  </code></pre>
  
  <p>My Php array:</p>
  
  <pre><code>&lt;?php
  
  $contatti = array('Mario Rossi, Via Cippina,1 - 10100 Torino','Giacomo Puccini, Via Cippella, 2 10100 Torino','Giuseppe Verdi, Via Aida, 14 10100 Torino','Nicolò Paganini, Via NonRipetibile, 33 10023 Chieri');
  echo json_encode($contatti);
  </code></pre>