mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
chore(range): emit ionChange on range
This commit is contained in:
@ -500,6 +500,8 @@ export class Range {
|
||||
}
|
||||
|
||||
this.onChange(this.value);
|
||||
|
||||
this.ionChange.emit(this);
|
||||
}
|
||||
|
||||
this.updateBar();
|
||||
|
@ -11,6 +11,11 @@ class Page1 {
|
||||
singleValue4: number = 1300;
|
||||
dualValue: any;
|
||||
dualValue2 = {lower: 33, upper: 60};
|
||||
|
||||
rangeChange(ev) {
|
||||
console.log(`range, change, ratio: ${ev.ratio}, value: ${ev.value}`);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
<ion-list>
|
||||
<ion-item>
|
||||
<ion-range [(ngModel)]="singleValue" danger pin="true"></ion-range>
|
||||
<ion-range [(ngModel)]="singleValue" danger pin="true" (ionChange)="rangeChange($event)"></ion-range>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
|
Reference in New Issue
Block a user