Why am I getting the error: \"Uncaught TypeError: self.myTest is not a function\"? How do I call a method from within another method in a javascript class?
You need to use this not self like
this
self
runMyTest() { this.myTest(); }
However a lot of implementations like to keep the reference and are doing the following:
var self = this;
That might be the reason you were thinking of self as self reference. For further reading I'd suggest this SO - post