You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code works fine if I remove the <submod></submod> in the main template. Can you explain if this is a bug, or otherwise how I can compose templates?
Note: I also tried using directives: https://jsfiddle.net/yktv5pve/ But I get an error: TypeError: Cannot read property 'onclick' of null
Thanks, I do like Monkberry, I think it's fantastic!
The text was updated successfully, but these errors were encountered:
At first example with event delegating everything is correct. To solve this you need to wrap non-elements (like ifs, loops, custom tags) with another node (div, span):
Hi, I'm trying to reference a template within a template. Please see: https://jsfiddle.net/Lnne9wxt/
The code works fine if I remove the
<submod></submod>
in the main template. Can you explain if this is a bug, or otherwise how I can compose templates?Note: I also tried using directives: https://jsfiddle.net/yktv5pve/ But I get an error:
TypeError: Cannot read property 'onclick' of null
Thanks, I do like Monkberry, I think it's fantastic!
The text was updated successfully, but these errors were encountered: