if I have a javascript ES6 class, for example:
import $ from "jquery"; export class test { constructor() { this.es6 = 'yay'; } writeLine(text){ console.log(text); } getTestData(){ writeLine('writeLine call');
From another file, I import the class and call getTestData p>
System.import('app/classDefinition') .then(function(classDefinitionModul) { var test = new classDefinitionModul.test(); console.log(test.es6); test.getTestData(); })
How can I call the writeLine method ??
source share