estoy intentando hacer con un tiempo ya definido que es 5 minutos, el ion-progress-bar vaya haciendo el % y se vaya viendo. El valor del value al 100% es de 1. Pero no consigo hacer-lo. Me pueden ayudar?
Componente
export class ProgressBarPage implements OnInit {
public progress:number = 0;
public timer:number = 0;
constructor() { }
ngOnInit() {
this.barTimer()
}
barTimer(){
setTimeout(function(){
this.timer = this.timer + '0.1'
}, 1000);
}
}
Vista:
<ion-label class="ion-margin">Default at 50%</ion-label>
<ion-progress-bar value={{timer}}></ion-progress-bar>