Hey guys,
I add an html using the method below:
for (var i = this.controls.length - 1; i >= 0; i--) {
console.log('control: '+this.controls[i]);
document.getElementById('control-'+i).innerHTML = this.controls[i];
}
I used this since i using [innerhtml] strips the “(click)” in the html and this works fine
but “(click)” won’t work and nothing is happening, not even an error appears.
here the code for the function to be called by click:
openGlossary(){
console.log('opening glossary....');
}