Error in onChange of an ion-range in ionic 3

Viewed 1782

I have the following html

<ion-item>
        <ion-range min="5" max="300" pin="true" [(ngModel)]="contrast" color="secondary" ionChange=“changeRange(contrast)”>
          <ion-icon range-left small name="contrast"></ion-icon>
          <ion-icon range-right name="contrast"></ion-icon>
        </ion-range>
</ion-item>

the result is:

enter image description here

and this is the triggered method :

changeRange(valor){
    console.log(valor.value);

  }

Where, as you can see, I use the ionChange to execute the changeRange method. But when I run it, I get the following error.

enter image description here

what am I doing wrong?

2 Answers

This is only a warning & it doesn't affect your application. You can just ignore it or you can try another plugin for the range component

Related