Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

(click) event doesn't work?

$
0
0

@Cabz wrote:

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

image

image

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....');
  }

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>