This is my code
class MyClass {
private ref: any;
private ourprogress: any = 0;
onUploadAll() {
ref.api(somedata).then(function (snapshot) {
this.ourprogress++;//Not working
});
}
}
ourprogress remains unchanged no matter what