title: Ionic 2 how to retrieve info in list?
body: <p>I'm trying to retrieve the info from my PHP server.</p>
  
  <p>Here is my code</p>
  
  <pre><code>//Dans mon service d'authentification
  checkVehicleList() {
      this.getUserId().then(data =&gt; {
      this.userid = data; 
      return new Promise(resolve =&gt; {
          alert(this.userid);
          this.http.get('http://localhost/helloworld/api/v1/list?iduser='+this.userid).subscribe(data =&gt; {
              alert(data.json().InformationsVehicules);
             if(data.json().InformationsVehicules){
                  alert("reussite");
             } else { alert("error !") }
               });
          });
      });
  }
  
  //Dans la page des vehicules, j'appel la fonction juste pour savoir ce qu'elle qaffiche avec les alerts
  public MarqueVeh : any;
  public marque : any;
  
  loadVeh() {
    this.viauth.checkVehicleList().then(data =&gt; {
      this.MarqueVeh = data;
    });
  }
  
  
  // Voici le tableau que me retourne ma route PHP
  {"InformationsVehicules":[{"marque":"bgy","matricule":"ce1370","numero_chassi":"123654"},{"marque":"bvd","matricule":"derty","numero_chassi":"ddff"}]}
  </code></pre>
  
  <p>I want the array that is returned to be kept in a variable so that I can use it like this</p>
  
  <p></p>
  
  <p></p>
  
  <pre><code>&lt;ion-button button round class="veh-button" clear color="light" (click)="showVehiclePopUp()"&gt;{{Veh.marque}}&lt;span style="display:inline-block; width: 200px;"&gt;&lt;/span&gt;
  
  &lt;ion-buttons end&gt;
    &lt;ion-icon name="ios-play"&gt;&lt;/ion-icon&gt;
  &lt;/ion-buttons&gt;&lt;/button&gt;&lt;br&gt; 
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <p>I put the alerts in my code to know what the variables contain and I receive as message "undefiened".</p>