I’m new to ionic and angular. I’d like to use a range input to control an audio element volume, like this, but it isn’t working:
<ion-range min="0" max="1" step="0.01" [(ngModel)]="audio.volume">
The following works (but then I don’t have the styling and can’t use <ion-icon range-left name="volume-down">
, etc):
<input type="range" min="0" max="1" step="0.01" [(ngModel)]="audio.volume">
The following also works and indicates that it’s the non-integer step size causing the problem:
<ion-range min="0" max="100" pin="true" [ngModel]="100*audio.volume" (ngModelChange)="audio.volume=$event/100">
Is ion-range meant to only work with integer step sizes? Is there a way to use ion-range with a decimal step size? Is this a bug or something I’m doing wrong?