You are using a regular javascript function here:
reader.onload = function(e) {
this.text=reader.result;
}
The this
belongs to the function not your class.
Use arrow function
reader.onload = (e)=> {
this.text=reader.result;
}
Or
self = this;
reader.onload = function(e) {
self.text=reader.result;
}