Is it possible to call getter and setter from within own class ? If yes what's the valid syntax instead of invalid
this.gettext();
in below class :
class Test {
_text: string;
constructor(value: string) {
this._text = value;
}
get text() {
return this._text;
}
set text(value) {
this._text = value;
}
test () {
return this.gettext();
}
}