konsoletyper / teavm-flavour

Framework for writing client-side applications using TeaVM
Apache License 2.0
110 stars 19 forks source link

Passing parameters to the body of inner components #56

Open PokingUrsa opened 3 years ago

PokingUrsa commented 3 years ago

I'm working on passing parameters to the body of an inner component. Specifically, I have a page with HTML like this:

The goal is for component 'a' to provide varFromA each time it inserts component b. However, it appears that Flavour is trying to find varFromA in the class bound to the page. I can have component 'a' set a variable in the page class to be read, but is there a better way? I tried using std:with and std:insert in component 'a' to set a variable for use in the inserted body, but it didn't work.