I cannot get any events to fire if I reference a variable in the event declaration. This is from my template. Everything works if the onclick event handler does not reference a binding:
I am super new to Aurelia, so there is a lot I do not know. Can someone help explain why this does not work and what I should be doing instead? Thank you.
Update:
OK, I can use click.delegate to call a method in my TypeScript, but I am finding that “’${ imageInfo.imageInfoId }’” is passing this literal string, not the resolved value from the binding. How can I get the bound value from the event handler?
I never did manage to figure out how to pass ‘thumbnail_${ imageInfo.imageInfoId }’ as a value into an event handler method. What I did manage to do is pass $event to click.delegate and from there inspect the data- properties on the event target, which allowed me to piece together the information that I needed programmatically.