I came across this weird behavior. I want to add a html template containing an onclick behavior. So I tried the code below. The problem is that the function callFunction inside is executed automatically. My guess is that callFunction is executed when parsing the interpolation string in innerHTML. Is there a way around this behavior ? Thanks you Answer Expressions