0

I'm trying to figure out how to data-bind an ion-range in ionic v4. The usage guide for v4 is light on info and I keep getting an error that reads, "can't bind to ngmodel since it isn't a known property of ion-range".

Example from ionic v3 documentation

<ion-item>
  <ion-range [(ngModel)]="brightness">
    <ion-icon range-left small name="sunny"></ion-icon>
    <ion-icon range-right name="sunny"></ion-icon>
  </ion-range>
</ion-item>
Carrie M.
  • 95
  • 1
  • 12

1 Answers1

1

Answered in the comments section - the FormsModule had not been imported correctly. More discussion on how to import in:
Angular error: "Can't bind to 'ngModel' since it isn't a known property of 'input'"

chrismclarke
  • 1,995
  • 10
  • 16