How to load data in select item in ionic 2 and know the selected item?

i did try this solution but nothing’s showing up please i need help.!


 <form (ngSubmit)="InsertLocation()" #registerForm="ngForm">
             <img src="assets/img/1.jpg" />
                     <ion-select [(ngModel)]="selectedvalue"name="chauff">
   <ion-option *ngFor="let item of chauffeurs"[value]="item.nom_chauffeur">
       <button ion-button class="submit-btn" type="submit" 


      data => {
          this.chauffeurs= data;
      err => {
      () => console.log('success!')

knowing the result of data is an array like this
//data [{“id_chauffeur”:6,“nom_chauffeur”:“ggg”, “num_tel”:2563,“id_chef”:10}]

and my service that i call it data in page.ts

LoadChauffeur(id) {
  var url = 
      var response = this.http.get(url).map(res => res.json());
      return response;

this the result i get

chauffeurs = []. Initialize it to an empty array.

1 Like

it worked but with " id_chauffeur" wich is a number but i get the “nom_chauffeur” (string) undefined from the http call !! why is that?