Ion-select i can't get selected value


    <ion-label class="ion-label">label</ion-label>
    <ion-select  [ngModel]="selected_value" (change)="showselected(selected_value)" [ngModelOptions]={standalone: true}">
      <ion-option value="1"> item1</ion-option>
      <ion-option value="2"> item2</ion-option>
      <ion-option value="3"> item3</ion-option>


console.log("selector: ", selected_value );

ionic info :slight_smile:
Cordova CLI: 6.3.0
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X Yosemite
Node Version: v6.3.1

Hello , i have problem that i can’t get selected value using (change), but when using (ionChange) it returns undefind value

i solved that with the following just replace [ngmodel] with [(ngModel)] with(IonChange)

1 Like