I have a JavaScript class which I created and I want to instantiate this class in another javascript method
i.e.
F2:
export default class Example {
test() {
console.log('hello world');
}
}
& F1:
import Example from './file2';
var myInstance = new Example()
myInstance.test()
I have not been able to do this yet, and I'll likely need to find another way, but does anyone know? I am aware of aras.evalMethod, although I have yet to find success in terms of class instantiation with this way.