我使用onchange将我的输入范围的值保存到firebase中,但是我有一个错误说我的函数没有定义。onchange相当于angular2
这是我的功能
saverange(){
this.Platform.ready().then(() => {
this.rootRef.child("users").child(this.UserID).child('range').set(this.range)
})
}
这是我的HTML
<ion-item>
<ion-row>
<ion-col>Rayon <span favorite><strong> {{range}} km</strong></span></ion-col>
<ion-col><input type="range" name="points" min="0" max="40" [(ngModel)]="range" onchange="saverange()"></ion-col>
</ion-row>
</ion-item>
什么是平变化的角度等价,如果存在。 谢谢
'(其他城市)',5更多去 –
谢谢6更多去 – PrinceZee